CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

Charleene 1.0

Charleene 1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release May 2016

Maintained by Kersten Broich.



iOS - UIModalPresentationFormSheet for iPhone

Charleene is simple, modern and lightweight solution for porting the UIModalPresentationFormSheet (known as a system API feature on iPads) to iPhones.

Charleene takes any UIViewController as containing UIViewController and presents it modally.

Whenever Charleene is used on the iPad it calls the iOS system API for UIModalPresentationFormSheet.

Demo

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Include

Include the corresponding category on UIViewController in your implementation file

#import "UIViewController+Charleene.h"

Presentation

Usage is as simple as that:

From Storyboard:

ViewControllerOfYourChoice *vc = [[UIStoryboard storyboardWithName:@“Main” bundle:nil] instantiateViewControllerWithIdentifier:@“ViewControllerOfYourChoice”];
[self presentCharleeneModally:vc transitionMode:KSModalTransitionModeFromBottom];

From Code:

ViewControllerOfYourChoice *vc = [[ViewControllerOfYourChoice alloc] init];    
[self presentCharleeneModally:vc transitionMode:KSModalTransitionModeFromBottom];

Dismissal

Dismissal is as simple as calling the following method on any UIViewController

[self dismissCharleeneAnimated:YES completion:nil];

Requirements

iOS7.x / iOS 8.x

Installation

Charleene is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Charleene"

Change Log

What's new in version 1.0

  • No functional update - just fixed some typos and made it a stable 1.0 release

Author

Kersten Broich, [email protected]

License

Charleene is available under the MIT license. See the LICENSE file for more info.