Why isn't viewWillDisappear or viewDidAppear being called?

前端 未结 4 784
醉话见心
醉话见心 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:08

    i noticed the same issue in iOS7. When i'm using both tab bar (2 buttons A, B) and navigation controller.

    A has two views. One with tableview and second displays data according to the selection from the table view.

    B has is the only view.

    Button which is refer to another separate view D, placed in both tab bar views (A & B) and in both views of A.

    Problem arises when i click the button from tab item B, viewWillAppear and viewDidLoad not called.

    So i solved this issue by presentModalViewController:animated: and to come back i used dismissModalViewControllerAnimated:, just when i go to view D from tab item B.

提交回复
热议问题