Skip to content

Commit

Permalink
[TIMOB-7346] Ensure activeTab is set correctly on initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalduggal committed Jan 25, 2012
1 parent 5b6a3ed commit 7e4de06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions iphone/Classes/TiUITabProxy.m
Expand Up @@ -187,6 +187,11 @@ - (void)navigationController:(UINavigationController *)navigationController will

- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
id activeTab = [tabGroup valueForKey:@"activeTab"];
if (activeTab == nil) {
//Make sure that the activeTab property is set
[self setActive:[NSNumber numberWithBool:YES]];
}
transitionIsAnimating = NO;
[self handleDidShowViewController:viewController];
}
Expand Down

0 comments on commit 7e4de06

Please sign in to comment.