- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
//only one alertview so we'll just push here
MyAppDelegate *appDelegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
[[appDelegate tabBarController] setSelectedIndex:1];
}
The indexing is zero-based, as expected, so don't forget that :)
No comments:
Post a Comment