iPhone+;标签栏

iPhone+;标签栏,iphone,uitabbar,Iphone,Uitabbar,我的应用程序中有一个带有三个选项卡栏项的UITabBar 在某些情况下,我希望显示所有三个选项卡栏项目,在某些情况下,我希望从选项卡栏隐藏第三个选项卡栏项目 请帮我把信息发送给UITabBar。例如: // get array of current UITabBarItem objects NSMutableArray *tabBarItems = [tabBarViewController.items mutableCopy]; // modify the array (remove or

我的应用程序中有一个带有三个选项卡栏项的UITabBar

在某些情况下,我希望显示所有三个选项卡栏项目,在某些情况下,我希望从选项卡栏隐藏第三个选项卡栏项目

请帮我把信息发送给UITabBar。例如:

// 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];
将消息发送给UITabBar。例如:

// 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];

如果创建NSArray,我如何修改它(从中添加/删除对象),因为它不可变。如果创建NSArray,我如何修改它(从中添加/删除对象),因为它不可变。