Dragging onto the exit of the viewcontroller not working

后端 未结 4 850
遇见更好的自我
遇见更好的自我 2020-12-16 07:37

I have looked for this problem everywhere. I know how the unwind scene works. I have implemented the following code in the A VC

-(IBAction)returned:(UIStory         


        
4条回答
  •  旧巷少年郎
    2020-12-16 07:53

    To make Exit outlet active, add this code to viewController. Now you should be able to ctrl-drag to exit outlet. It is actually quite odd, that there should be empty method to make it work.

    swift
    @IBAction func unwindSegue(unwindSegue:UIStoryboardSegue) 
    
    objC
    - (IBAction)unwindSegue:(UIStoryboardSegue *)sender;
    

提交回复
热议问题