Creating a segue programmatically

前端 未结 13 1082
名媛妹妹
名媛妹妹 2020-11-22 12:41

I have a common UIViewController that all my UIViewsControllers extend to reuse some common operations.

I want to set up a segue on this \"

13条回答
  •  悲&欢浪女
    2020-11-22 13:21

    A couple of problems, actually:

    First, in that project you uploaded for us, the segue does not bear the "segue1" identifier:

    no identifier

    You should fill in that identifier if you haven't already.

    Second, as you're pushing from table view to table view, you're calling initWithNibName to create a view controller. You really want to use instantiateViewControllerWithIdentifier.

提交回复
热议问题