开发者

I want to refresh UITableView in UITabBarController

开发者 https://www.devze.com 2023-02-05 00:30 出处:网络
I am using UITabBarController and I am setting some controllers in it ,when i tab to different controllers it works fine,But If iam inserting data in database and tab to second controller ,it dnt show

I am using UITabBarController and I am setting some controllers in it ,when i tab to different controllers it works fine,But If iam inserting data in database and tab to second controller ,it dnt show the data except restarting the application.I think tabbar loads all controllers ,so i want to refresh my TableView so that I can view added data any sugge开发者_开发知识库stions?


@Ali try reloading data in the tableView.....try this [self.tableView reloadData]; when you come back to your view where u want to display the data in the tableView i.e the view which contain UITableView

Hope this may help u!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号