如何使 SWIFT 中的 Cell 可点击,就像 iPhone 中的最近通话一样?

How to make UICell clickable in SWIFT like in recents calls in iPhone?

我想点击 UItableView 中的单元格,然后在同一视图中进行操作。 (不需要另一个控制器出现) 例如,如果您转到 iPhone 中的最近通话并单击任何姓名,phone 将拨打电话。

查看 UITableView 参考资料,特别是关于 didSelectRowAtIndexPath:https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewDelegate_Protocol/index.html#//apple_ref/occ/intfm/UITableViewDelegate/tableView:didSelectRowAtIndexPath:

的部分

您可以在那里处理水龙头或调用任何您喜欢的功能。