Present your view controller from anywhere with ease!
Just call presentViewControllerToTop:animated
from [RPSViewControllerPresenter presenter]
, and subscribe to the returned RACSignal
to receive the completion.
UIViewController *viewController = [UIViewController new];
[[[RPSViewControllerPresenter presenter] presentViewControllerToTop:viewController animated:YES] subscribeNext:^(id x){
NSLog(@"Presenting completed!");
}];
RPSViewControllerPresenter is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RPSViewControllerPresenter"
Ricardo Pramana Suranta, ricardo.pramana@gmail.com
RPSViewControllerPresenter is available under the MIT license. See the LICENSE file for more info.