当前位置: 动力学知识库 > 问答 > 编程问答 >

iphone - Do we need to call viewWillAppear Manually in TabbarController while tab shifts and navigationController while popping

问题描述:

I am using tabBarController and I want to refresh my views on every tab shift. So if user shifts from tab first to tab fourth and again comes back to first the view must be updated. So do I need to call the viewWillAppear manually as it doesnt call on its own.

Similarly while popping a view from NavigationController I need to call viewWillAppear for the parent view of the view being popped. So again do I need to call it manually.

网友答案:

My guess is that you've got navigation controllers to go along with that tabBarController. If that is the case, you should take a look at this SO question. Myself, I side with the first answer.

分享给朋友:
您可能感兴趣的文章:
随机阅读: