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.
アプリの実行中にタブバーアイテムのテキスト/アイコンをその場で変更することは可能ですか?
たとえば、タブバーのアイテムの名前はItem1です。アプリの使用中にプログラムで「ItemX」に変更したい。
どうもありがとう、-コード
タブバー項目のテキスト/アイコンをどこで変更したいですか?ビュー コントローラー自体で?次のように、ビュー コントローラーでタブバー項目のテキスト/アイコンを変更できます。
self.title = @"ItemX"; self.tabBarItem.image = [UIImage imageNamed:@"ItemX"];
ココアの uitabbarcontroller で個々の tabbaritem アイコンを設定する方法