segue仅在第二次点击时工作,而不是一次点击

时间:2015-07-08 19:12:09

标签: ios swift segue

正在处理一个待办事项列表应用程序,当我测试应用程序时,segue仅在第二次点击时工作 然后segue在print ln语句的后期第一次点击开始工作

1 个答案:

答案 0 :(得分:2)

问题解决了 而不是写这个:

tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) 

我写了这个:

tableView(tableView: UITableView, did**De**selectRowAtIndexPath indexPath: NSIndexPath)