Permalink
Browse files

Selected third tab by default.

  • Loading branch information...
1 parent 0a4bb55 commit ff2d92d3d2a6b8b4cefda134d3528d2951531053 @jeroenleenarts jeroenleenarts committed Apr 27, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 DemoForBlog/XSDAppDelegate.m
@@ -37,6 +37,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
UIViewController *viewController3 = [[XSDThirdViewController alloc] initWithNibName:nil bundle:nil];
self.tabBarController = [[UITabBarController alloc] init];
self.tabBarController.viewControllers = [NSArray arrayWithObjects:viewController1, viewController2, viewController3, nil];
+ self.tabBarController.selectedIndex = 2;
self.window.rootViewController = self.tabBarController;
[self.window makeKeyAndVisible];
return YES;

0 comments on commit ff2d92d

Please sign in to comment.