Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 0.40 KB  |  hits: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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