开发者

How can I change a UITabBarItem title to the title from another UITabBarItem?

I want to change the title of UITabBarItem 1 to that of UITabBarItem 4.

Both are in the same UITabBarController.

How do I g开发者_Python百科o about changing these titles?


NSArray * items = tabBar.items ;
((UITabBarItem*)[ items objectAtIndex:0 ]).title = 
    ((UITabBarItem*)[ items objectAtIndex:3 ]).title
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜