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.
是否可以在选项卡栏控制器中将第一个选项卡设置为启动应用程序时显示的默认视图?
为了更好地说明,当应用程序启动时,是否可以将“设置”设置为第一个屏幕而不是文档作为第一个屏幕?没有重新组织标签栏中项目的位置?
UITabBarController 有一个名为 的属性selectedIndex。我想这就是你要找的。在您的情况下,您需要将其设置为 2,因为您希望首先显示设置页面。
UITabBarController
selectedIndex