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.
我有一个带有四个标签的标签栏应用程序。每个选项卡加载相同的 UITableViewController。
我想根据点击的选项卡填写表格。
如何?
采用:
if (self.tabBarController.selectedIndex == 0) ...
等等。