How do I segue values when my ViewController is embedded in an UINavigationController?

后端 未结 1 1124
囚心锁ツ
囚心锁ツ 2021-01-14 23:00

I have two view controllers that send values back and forth via segues and the prepareForSegue method. This has been working out perfectly for me until I decided to

1条回答
  •  醉梦人生
    2021-01-14 23:12

    casting it as ViewController is working fine for me.

    var dest = segue.destinationViewController as! ViewController
    

    And your segue connection should be :

    enter image description here

    0 讨论(0)
提交回复
热议问题