Skip to content

Commit

Permalink
Don't animate selection
Browse files Browse the repository at this point in the history
  • Loading branch information
myell0w committed Feb 17, 2012
1 parent fce18d3 commit 391d693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NGVerticalTabBarController/NGVerticalTabBarController.m
Expand Up @@ -312,13 +312,13 @@ - (void)updateUI {
if (self.selectedIndex != NSNotFound) {
NSIndexPath *newSelectedIndexPath = [NSIndexPath indexPathForRow:self.selectedIndex inSection:0];
UIViewController *newSelectedViewController = self.selectedViewController;
[self.tabBar selectRowAtIndexPath:newSelectedIndexPath animated:YES scrollPosition:UITableViewScrollPositionNone];
[self.tabBar selectRowAtIndexPath:newSelectedIndexPath animated:NO scrollPosition:UITableViewScrollPositionNone];

// show transition between old and new child viewcontroller
if (self.oldSelectedIndex != NSNotFound) {
NSIndexPath *oldSelectedIndexPath = [NSIndexPath indexPathForRow:self.oldSelectedIndex inSection:0];
UIViewController *oldSelectedViewController = [self.viewControllers objectAtIndex:oldSelectedIndexPath.row];
[self.tabBar deselectRowAtIndexPath:oldSelectedIndexPath animated:YES];
[self.tabBar deselectRowAtIndexPath:oldSelectedIndexPath animated:NO];

if (self.containmentAPISupported) {
// custom move animation
Expand Down

0 comments on commit 391d693

Please sign in to comment.