我的应用程序中有一个带有三个选项卡栏项目的UITabBar。
在某些情况下,我想要显示所有三个选项卡栏项目,而在某些情况下,我想从选项卡栏中隐藏第三个选项卡栏项目。
请帮帮我
发布于 2009-11-04 15:27:49
向UITabBar发送setItems:animated:消息。例如:
// get array of current UITabBarItem objects
NSMutableArray *tabBarItems = [tabBarViewController.items mutableCopy];
// modify the array (remove or add UITarBarItem objects as appropriate) here
// animate the changes to the UITabBar
[tabBarViewController.tabBar setItems:tabBarItems animiated:YES];https://stackoverflow.com/questions/1672134
复制相似问题