Skip to content

psandeepunni/SPNavigationController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

SPNavigationController - UINavigationController With Custom Transitions

This is a UINavigationController that allows for all custom slide animations, not just the usual slide from right to left. Easy to plugin to an iOS Project, and you will have access to a navigation controller structure, fully customisable navigation view. Implemented using a containment controller.

alt tag

##Contents

  • [Getting Started] (#Getting-Started)
  • [Examples] (#examples)
  • [Transitions] (#transitions)
  • [Minimum Requirements] (#minimum-requirement)
  • [Other] (#other)

Getting Started

  1. git clone https://github.com/psandeepunni/SPNavigationController.git
  2. Drag and drop the "SPNavigationController" folder to your iOS project. Please remember to check copy folder contents option.
  3. Add import statement for "SPNavigationUIKit" to your projectName-prefix.pch file

Examples

  1. To add the navigation controller to your window object
	self.window.rootViewController = [[SPNavigationController alloc] initWithRootViewController:initViewController];
  1. Push a view controller from another view controller
SPChildViewController *child = [[SPChildViewController alloc] initWithNibName:@"SPChildViewController" bundle:nil];
[self.spNavigationController pushViewController:child animated:YES animationType:UITransitionPushFromLeftSide];
  1. Pop a view controller
[self.spNavigationController popViewControllerAnimated:YES];

Transitions

Currently navigation controller supports 4 transitions that you cycle through by passing the below options

  1. UITransitionPushFromLeftSide (default)
  2. UITransitionPushFromRightSide
  3. UITransitionPushFromTop
  4. UITransitionPushFromBottom

Please see the sample project in the repository on how the transitions look and work

Minimum Requirements

iOS 5 and above only

Other

(Coming soon)

About

UINavigationController that supports all slide animations

Resources

Stars

Watchers

Forks

Packages

No packages published