开发者

Refresh tableView \ View

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜