Conditionally following a segue

前端 未结 4 1291
北恋
北恋 2020-12-13 20:29

In my app I have a login screen. When connecting a segue from the login button to the next (table) view controller however, you are always able to proceed, no matter what yo

4条回答
  •  不知归路
    2020-12-13 20:32

    On iOS 6, UIViewController's shouldPerformSegueWithIdentifier:sender: method solves this issue without manual triggering segues.

提交回复
热议问题