Why isn't viewWillDisappear or viewDidAppear being called?

前端 未结 4 766
醉话见心
醉话见心 2020-12-31 21:59

I have a UINavigationController with a UITableView as my main menu. User clicks on a cell and a new view is pushed on the stack. In one case I push

4条回答
  •  执念已碎
    2020-12-31 22:19

    Although you solved your problem, in case someone comes along in the future another problem could have been that you forgot the animated: argument to either method - that is to say, the format of the method needs to look like:

    - (void) viewWillAppear:(BOOL)animated
    

提交回复
热议问题