Add #import "BSYAnimator.h" and #import "BSYTransitionAnimator.h" Two header files to the controller you need to use:
@property (Nonatomic,strong) bsyanimator Animator; @property (nonatomic,strong) Bsytransitionanimator * transitionanimator;///Follow Agent @interface Viewcontroller ()///Controller @property (Nonatomic,strong) to jump Twoviewcontroller both;
Initialize in-(void) viewdidload
Self. Animator = [[Bsyanimator alloc]init];self. Transitionanimator = [[Bsytransitionanimator alloc]init]; Twoviewcontroller *two = [[Twoviewcontroller alloc]init];self.navigationcontroller.delegate = self; Two.transitioningdelegate = Self;two.modalpresentationstyle = Uimodalpresentationcustom;
Then in the method of jumping [Self.navigationcontroller pushViewController:self.two animated:yes];
Code Download: Download
IOS Custom Push Transitions animation