accessoryButtonTappedForRowWithIndexPath: not getting called

后端 未结 8 1927
执念已碎
执念已碎 2020-12-05 13:01

I am creating a Detail disclosure button which is getting populated using an array.... However the accessoryButtonTappedForRowWithIndexPath: function is not being called in

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 13:48

    My tableView's accessoryButtonTappedForRowWithIndexPath(…) was not being called when the Detail disclosure button was hit. I eventually found that the problem was simply that tableView delegate had not been set:

    self.tableView.delegate = self

提交回复
热议问题