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 个 UITabBarItem 的 TabBarController 中选择所需的 UITabBarItem?
当然。只需将标签栏控制器的selectedViewController或selectedIndex属性设置为所需的视图控制器或标签索引。
selectedViewController
selectedIndex