Skip to content

Instantly share code, notes, and snippets.

@davidino
Created September 24, 2010 09:27
Show Gist options
  • Save davidino/595113 to your computer and use it in GitHub Desktop.
Save davidino/595113 to your computer and use it in GitHub Desktop.
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
if ([tabBarController.viewControllers objectAtIndex:1] == viewController)
{
UIViewController *articles = [[ListViewController alloc] initWithStyle:UITableViewStylePlain andArticles:[self.appDelegate getPreferredArticles]];
[articles setTitle:@"Preferiti"];
// Pass the selected object to the new view controller.
[viewController setTitle:@"prova"];
[viewController.navigationController pushViewController:articles animated:YES];
[articles release];
}
//[self preferredList:nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment