prepareForSegue and delegates

后端 未结 2 1709
执笔经年
执笔经年 2021-02-14 08:58

I have an application with two segues. In one of the segues, the current view controller becomes a delegate and the other does not.

- (void)prepareForSegue:(UIS         


        
2条回答
  •  臣服心动
    2021-02-14 09:49

    Take a look at your storyboard and it should be evident why this is the case. You have embedded MoreOptionsViewController in a UINavigationController and connected a segue to the navigation controller, thus making it the destinationViewController. This is fairly common.

提交回复
热议问题