Permalink
Browse files

Call completion in animationMode moveAndScale after transform is back…

… to (1,1)
  • Loading branch information...
1 parent 110fb6a commit b707e371c43fa55e896f5583ebed0d186bf7fb90 @myell0w myell0w committed Feb 28, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 NGVerticalTabBarController/NGVerticalTabBarController.m
@@ -399,11 +399,14 @@ - (void)updateUI {
} completion:^(BOOL finished) {
newSelectedViewController.view.frame = self.childViewControllerFrame;
_moveScaleAnimationActive = NO;
+
+ // call the delegate that we changed selection
+ [self callDelegateDidSelectViewController:newSelectedViewController atIndex:self.selectedIndex];
}];
+ } else {
+ // call the delegate that we changed selection
+ [self callDelegateDidSelectViewController:newSelectedViewController atIndex:self.selectedIndex];
}
-
- // call the delegate that we changed selection
- [self callDelegateDidSelectViewController:newSelectedViewController atIndex:self.selectedIndex];
}];
}

0 comments on commit b707e37

Please sign in to comment.