【发布时间】:2026-02-11 10:45:02
【问题描述】:
我有 1 个 viewController 和 1 个 tableViewController。我可以从 viewController 发送一个 NSMutableArray 来使用 segue 填充 tableViewController。我不知道如何将选定的行发送回视图控制器。到目前为止的代码:
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
println("You selected cell #\(indexPath.row)!")
// Missing code for sending back the selected row
self.dismissViewControllerAnimated(true, completion: nil)
}
有什么想法吗?
【问题讨论】: