开发者

Refresh a view on TabBarController

开发者 https://www.devze.com 2023-03-25 07:33 出处:网络
I have a TabBarController, with three 开发者_如何转开发views, one of which is the settings view. When I go to the settings page, then come out of the app and go back in, I need the view to refresh. Is

I have a TabBarController, with three 开发者_如何转开发views, one of which is the settings view. When I go to the settings page, then come out of the app and go back in, I need the view to refresh. Is that possible?


It depends on what you want to refresh, and what your setting looks like?

If your setting view has a done or save button, you can put the refresh code there, [someController.theTable reloadData] for example.

Another way is to put the refresh code inside viewWillAppear: in the view that you want to refresh, info can be found here:

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/cl/UIViewController

0

精彩评论

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