当用户单击披露指示器时,我尝试添加指向自定义单元格的链接,应用程序根据单元格内容转到其他 View 如果用户选择了单元格,我如何知道单元格的内容
最佳答案
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
}
}
关于ios - 添加带有披露指示器的 UIVewiTabelCell 链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33568691/