开发者

Refresh tableView \ View

开发者 https://www.devze.com 2023-01-08 23:50 出处:网络
I have tab bar application and when i press on one of the tabs the开发者_如何学C ViewDidLoad called

I have tab bar application and when i press on one of the tabs the开发者_如何学C ViewDidLoad called now if i moving to another tab and then return to the previous one the VewDidLoad didnt call how can i know that this window load again?

and also how can i refresh a view? for example a viewtable that i made logic changes and want to refresh the new data.

thanks.


The viewDidLoad method will just called once. The method you want is viewWillAppear, you can override that one.

To refresh a tableview you could use [tableview reloadData]

0

精彩评论

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