Swift segue not working?

后端 未结 6 1517
一个人的身影
一个人的身影 2021-01-14 09:50

My Swift segue is not working at all and isn\'t throwing any errors. The breakpoint shows me that the app lands on this line but nothing happens:

self.perfor         


        
6条回答
  •  别那么骄傲
    2021-01-14 10:20

    Performing a segue leads to present a new view controller.You don't need to and can't create and show view controller in prepareForSegue.It will look like:

    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?)
        {
            if (segue.identifier == "SignupSegue") {
    
                let vc = segue.destinationViewController
    
            }
        }
    

提交回复
热议问题