Skip to content

cpatni/SPTabBarController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

SPTabBarController

SPTabBarController is a custom tab bar container controller in ios 5. Unlike stock TabBarController, it can be embedded inside UINavigationController and it can be used with a custom tab bar. SPTabBarController API is identical to UITabBarController.

  SPTabBarController* tbc = [[[SPTabBarController alloc] init] autorelease];
  tbc.controllers = [NSArray arrayWithObjects:vc1, vc2, vc3, vc4, nil];

SPTabBarController supports replacing a controller at a given index with a new controller. For example, we want to replace a container when the user logs in or logs out.

- (void)replaceViewControllerAtIndex:(NSUInteger)index withViewController:(UIViewController*)newvc;

One more thing

SPTabBarController is an example of implementing custom container conttoller in ios 5 which fully interoperate with other built in container in iphone and ipad. The default behavior is using IOS 5 UIViewController api to transition between two sibling view controllers. replaceViewControllerAtIndex is an example of a swapping a child view controllers with a new UIViewController.

About

Custom tab bar container controller for ios 5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published