iOS: popViewController unexpected behavior

后端 未结 7 1937
迷失自我
迷失自我 2020-12-02 16:52

I\'ve been searching the internet for a solution. There\'s nothing I could find. So: I\'m using a UINavigationController. I am pushing two UIViewControllers onto it. In the

7条回答
  •  旧时难觅i
    2020-12-02 17:24

    This problem happen with me when i use storyboards. I've made a mistake: I have a UIButton with an action to performSegueWithIdentifier. So i link the push segue with Button with the other ViewController so occur this problem.

    To solve: Link the button action in UIButton and link the push segue between two ViewControllers.

提交回复
热议问题