问题描述:

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.

相关阅读:
Top