我有一个tabcontroller应用程序,我想禁止用户转到某个选项卡,如果他没有登录。现在我已经重写了此tabBarController函数。如何在xcode 4.3选项卡应用程序中以编程方式切换选项卡
#pragma mark - TabBar Controller functions
- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController {}
我真的不知道如何告诉tabBarController将用户重定向到另一个选项卡。
任何想法?
http://stackoverflow.com/a/9664368/1126111 – 2012-03-20 13:13:33