Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 UITabBarItem 1 的标题更改为 UITabBarItem 4 的标题。
两者都在同一个 UITabBarController 中。
我该如何更改这些标题?
NSArray * items = tabBar.items ; ((UITabBarItem*)[ items objectAtIndex:0 ]).title = ((UITabBarItem*)[ items objectAtIndex:3 ]).title