使用Disclosure Indicator将linke添加到UIVewiTabelCell

时间:2015-11-06 14:09:41

标签: ios iphone swift uitableview

我正在尝试在用户点击Disclosure Indicator时添加自定义单元格的链接,应用程序转到其他视图取决于单元格内容 我如何知道用户选择的单元格内容

1 个答案:

答案 0 :(得分:0)

override func tableView(tableView: UITableView, accessoryButtonTappedForRowWithIndexPath indexPath: NSIndexPath) {
  if let cell = tableView.cellForRowAtIndexPath(indexPath) as? CustemTableViewCell {
    // here you can access the cell and it's content
  }
}