Guest User

Untitled

a guest
Aug 8th, 2012
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Reference to the current tab in storyboard UITabBarController
  2. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  3. {
  4. UITabBarController *tabController = (UITabBarController *)self.window.rootViewController;
  5. self.currentController = [[tabController viewControllers] objectAtIndex:0];
  6. }
  7.  
  8. self.currentController = tabController.selectedViewController
Advertisement
Add Comment
Please, Sign In to add comment