A navigation controller can use custom animation to go back and go forward just like safri behaved,it also can take a complete block.
http://bibibi.me/NavigationAnimation/
- it can go foward.
- it can use custom animations.
- when the animation end,it calls a block.
- replace UINavigationController with HJNC.
ViewController *vc = [[ViewController alloc] init];
HJNC *rootNC = [[HJNC alloc] initWithRootViewController:vc enableInteractivePush:YES];
self.window.rootViewController = rootNC;
- implement the protocol
@interface BaseViewController : UIViewController <HJVCInCDelegate>
@end
@implementation BaseViewController
@synthesize
canDragBack,
animationName;
- (BOOL)canDragBack
{
return YES;
}
- (BOOL)canDragPush
{
return YES;
}
- (NSString *)animationName
{
return @"HJVCNormalAnimation";
}
@end
now it only can be installed manually.