Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pre-select selectedIndex
  • Loading branch information
myell0w committed Feb 16, 2012
1 parent fdaa9dd commit b7530a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NGVerticalTabBarController/NGVerticalTabBarController.m
Expand Up @@ -101,6 +101,12 @@ - (void)viewWillAppear:(BOOL)animated {

[self.tabBar reloadData];

if (self.selectedIndex != NSNotFound) {
[self.tabBar selectRowAtIndexPath:[NSIndexPath indexPathForRow:self.selectedIndex inSection:0]
animated:NO
scrollPosition:UITableViewScrollPositionNone];
}

if (!self.containmentAPISupported) {
[self.selectedViewController viewWillAppear:animated];
}
Expand Down

0 comments on commit b7530a1

Please sign in to comment.