我有一個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