2

UITabBarItem 1 のタイトルを UITabBarItem 4 のタイトルに変更したい。

どちらも同じ UITabBarController にあります。

これらのタイトルを変更するにはどうすればよいですか?

4

1 に答える 1

4
NSArray * items = tabBar.items ;
((UITabBarItem*)[ items objectAtIndex:0 ]).title = 
    ((UITabBarItem*)[ items objectAtIndex:3 ]).title
于 2011-05-05T07:15:43.123 に答える