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.
iPhoneアプリケーションに4つのタブがあります。ユーザーがタブ1のボタンをクリックするときに、ユーザーを別のタブに移動/切り替えたいと思います。タブ2を想定しています。
どうやってするか?
使用できます
[self.tabBarController setSelectedIndex:tabIndex];
どこtabIndexに切り替えたいタブのインデックスです。
tabIndex
また、ビュー内にいる場合は、self の代わりに super を使用する必要があることを指摘することもあります。