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.
4つのTabBarItemを持つTabBarControllerがあります...タップされたイベントをキャプチャできるように、各TabBarItemをアドレス指定するにはどうすればよいですか?
UITabBarController のViewControllerSelectedイベントにデリゲートを接続して、タブ選択の変更を処理します。イベント引数 (UITabBarSelectionEventArgs) には、選択された ViewController が含まれており、そこから少し逆の方法で処理を行うことができます。