我有一个包含4个选项卡的UITabbarController。第四个连接到一个viewController,它有导航控制器在使用导航控制器连接的特殊选项卡中刷新tableView
我想刷新一个tableView,每当用户按下第四个选项卡。
我不能这样做,因为有和它包含表视图
有没有办法做到这一点的第四个选项卡我的UITabBarController之间的NavigationController?
我在UITabbaarController didSelect FUNC有我打电话refreshList FUNC但我知道这是不对的
override func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) {
FourthViewController().RefreshList()
}
我会在'viewWillAppear'中这样做。 – dasdom
@dasdom谢谢你的工作 –