TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Aug 2015 |
Maintained by Jérôme Morissard.
The UINavigationController missing API ! (push / pop with optional completionBlock). The implementation use the navigationController delegate on UINavigationController itself.
This project provides :
[self.navigationController popViewControllerAnimated:YES withCompletionBlock:NULL];
[self.navigationController popViewControllerAnimated:YES withCompletionBlock:NULL];
[self.navigationController popViewControllerAnimated:YES withCompletionBlock:NULL];
- (void)pushViewController:(UIViewController *)viewController
animated:(BOOL)animated
withCompletionBlock:(JMONavCompletionBlock)completionBlock;
- (void)popViewControllerAnimated:(BOOL)animated
withCompletionBlock:(JMONavCompletionBlock)completionBlock;
- (void)popToRootViewControllerAnimated:(BOOL)animated
withCompletionBlock:(JMONavCompletionBlock)completionBlock;
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated;
- (UIViewController *)popViewControllerAnimated:(BOOL)animated;
typedef NS_OPTIONS(NSUInteger, UINavigationControllerSwizzlingOption) {
UINavigationControllerSwizzlingOptionDelegate = 1 << 0,
UINavigationControllerSwizzlingOptionOriginalPush = 1 << 1,
UINavigationControllerSwizzlingOptionOriginalPop = 1 << 2
};
+ (void)activateSwizzling;
+ (void)activateSwizzlingWithOptions:(UINavigationControllerSwizzlingOption)options;
[self.navigationController popViewControllerAnimated:YES withCompletionBlock:NULL];
[self.navigationController pushViewController:vc animated:YES withCompletionBlock:^(BOOL successful) {
NSLog(@"Hi ! Push done !");
}];
[self.navigationController popViewControllerAnimated:YES];
[self.navigationController pushViewController:vc animated:YES];
Just add the following line in your podfile
pod 'UINavigationControllerWithCompletionBlock'