【发布时间】:2018-04-28 11:41:27
【问题描述】:
didSelectRowAtIndexPath 未调用。我尝试了所有通过堆栈溢出发布的解决方案。
func tableView(_tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
【问题讨论】:
-
怎么会有人能够帮助这些小信息?请编辑您的帖子以包含更多背景信息以及您迄今为止所做的尝试。
-
@LinusGeffarth 只有这一种方法有问题。 numberOfRowsInSection,cellForRowAt 工作正常
-
您是否已将代理连接到您当前的班级
-
class LocationViewController: UIViewController,UITextFieldDelegate,UITableViewDelegate,UITableViewDataSource,UIPickerViewDelegate,UIPickerViewDataSource,IndicatorInfoProvider,UITabBarControllerDelegate{ self.tableMain.delegate = self.tableMain.dataSource = self
-
如果您没有正确答案,请停止投票。
标签: ios swift uitableview