prepareForSegue and PerformSegueWithIdentifier sender

后端 未结 6 913
执笔经年
执笔经年 2021-02-03 13:18

I am wondering about how the functions in the title work and also about the sender parameter.

Lets say a button click calls the performSegue method, does that also call

6条回答
  •  北恋
    北恋 (楼主)
    2021-02-03 14:06

    Updated Method for Swift 5

    performSegue(withIdentifier: "showNextViewController", sender: self)
    

    Note : "showNextViewController" is identifier added for segue in storyboard

提交回复
热议问题