最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

swift - Segue not working in Xcode (beginner question) - Stack Overflow

programmeradmin3浏览0评论

The "print("test prepare")" line is not being triggered when I click between views. Please can someone tell me why? (I am trying to follow the instructions in "Beginning iOS 16 SWIFT" by Greg Lim (chapter 3: quotes app using table views))

Many thanks for any pointers! :-)

The "print("test prepare")" line is not being triggered when I click between views. Please can someone tell me why? (I am trying to follow the instructions in "Beginning iOS 16 SWIFT" by Greg Lim (chapter 3: quotes app using table views))

Many thanks for any pointers! :-)

Share Improve this question asked yesterday NibblesNibbles 658 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Your images show this code:

override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
    print("test prepare")
}

inside the QuoteDetailsViewController class. It should be in the QuoteTableViewController class.

发布评论

评论列表(0)

  1. 暂无评论