I have an application with NavigationController . How to change animation transition style pushViewController and popToViewController ?
UPD
I created a category, as in @lawicko's answer. But I got an error when I try to call a function
[self.navigationController pushViewController: places withCustomTransition: CustomViewAnimationTransitionPush subtype: CustomViewAnimationSubtypeFromLeft];
error: "use of undeclared identifier" CustomViewAnimationTransitionPush ""
Where should I declare this part:
typedef enum { CustomViewAnimationTransitionNone, CustomViewAnimationTransitionFlipFromLeft, CustomViewAnimationTransitionFlipFromRight, CustomViewAnimationTransitionCurlUp, CustomViewAnimationTransitionCurlDown, CustomViewAnimationTransitionFadeIn, CustomViewAnimationTransitionMoveIn, CustomViewAnimationTransitionPush, CustomViewAnimationTransitionReveal } CustomViewAnimationTransition;
Write now, I declare it in UINavigationController+Additions.h
UPD 2: Another new bug:
Undefined symbols for architecture i386: "_OBJC_CLASS_$_CATransition", referenced from: objc-class-ref in UINavigationController+Additions.o "_kCATransition", referenced from:
same errors as all _kCATransitions
source share