动态修改uitabbar的数量
2017-06-29 本文已影响0人
爬山的奥特曼
UITabBarController *tabBarController= (UITabBarController *)[UIApplication sharedApplication].delegate.window.rootViewController;
NSMutableArray *tabbarViewControllers= [NSMutableArray arrayWithArray: [tabBarController viewControllers]];
[tabbarViewControllers removeObjectAtIndex:1];
[tabBarController setViewControllers: tabbarViewControllers ];