Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Custom tab bar container controller for ios 5
Objective-C
Branch: master

readme

latest commit 8a09120586
Chandra Patni authored

README.md

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.

Something went wrong with that request. Please try again.