【发布时间】:2018-12-03 03:21:13
【问题描述】:
我正在尝试使用三个分层的 tableView 构建我的第一个应用程序。中间的 VC 有两个守卫合而为一,为 segue 功能做准备。
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
guard let destination = segue.destination as? AddMemberViewController else {
return
}
destination.club = club
guard let Destination = segue.destination as? TransactionViewController, let selectedRow = self.tableViewMember.indexPathForSelectedRow?.row else {
return
}
Destination.member = members[selectedRow]
}
这就是它的样子。我可以解决这个问题吗,这两个函数都被我的应用程序使用,因为它只使用顶部的函数。
【问题讨论】: