【发布时间】:2020-01-25 18:58:44
【问题描述】:
我正在开发我的第一个 ios 应用程序。
我正在使用 Xcode 11.3 和 Swift5
我不确定这是否可行,我可以在 NavigationLink 中按下后退按钮时添加一个操作吗?
(In this picture, the back button is 'Bibles' button.)
NavigationLink(destination: VerseList(bible: self.bible, chapter: c.chapter)){
ChapterRow(chapter: c.chapter)
}.navigationBarTitle("Chapters")
这是我的代码。我想添加“动作”..
有没有更好的方法?
【问题讨论】: