TRVSNavigationControllerTransition 0.1.0

TRVSNavigationControllerTransition 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • Travis Jeffery

UINavigationController+TRVSNavigationControllerTransition Category


This category provides two methods on UINavigationControllers to push and pop view controllers with an animated transition of the entire UINavigationController's view, rather just the view controller's.

Author: Travis Jeffery

API

- (void)pushViewControllerWithNavigationControllerTransition:(UIViewController *)viewController;
- (void)popViewControllerWithNavigationControllerTransition;

Usages

One usage of this is when you push a view controller onto your UINavigationController and that view controller wants to have the UINavigationController's navigationBar hidden as the UINavigationController's view translates in without hiding the navigationBar in the current view. Make sure you link your binary with the QuartzCore.framework library.

Here is using pushViewController:animated:, notice how the navigationBar in the current view is hidden before the transition is finished.

Bad

Here is using pushViewControllerWithNavigationControllerTransition:, now by using multiple layers we can keep the navigationBar visible in the current view until the transition completes.

Good

MIT License, see the LICENSE file for details.