How to pop a viewController and then Push a viewController through delegation

后端 未结 5 1065
长情又很酷
长情又很酷 2021-02-09 00:56

I have a UITableViewController that when a cell is pressed, I want the controller to pop itself, and then have the controller it pop\'s to, push another view controller onto the

5条回答
  •  闹比i
    闹比i (楼主)
    2021-02-09 01:22

    You should use a flag to overcome this situation. You set this flag in viewWillDisappear method of view controller being popped. When this flag is set then and then you can push another view controller on stack. Hope it's clear.

提交回复
热议问题