ios - 添加带有披露指示器的 UIVewiTabelCell 链接

标签 ios iphone swift uitableview

当用户单击披露指示器时,我尝试添加指向自定义单元格的链接,应用程序根据单元格内容转到其他 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/

相关文章:

ios - 无法在 iOS 中为 UITableView 设置辅助功能标识符

ios - 低能耗模式

ios - MapKit 中的 MapTypeStyle

iphone - NSFileSize 是什么实体?

node.js - 检查文件或目录是否被隐藏

ios - 带有 TextField 和 Button 的 UIView 内的 UIView 不工作

ios - Assets 目录在 Xcode 10.3 中返回 nil 图像,在 10.1 中工作正常

ios - 为什么当我调用 setContentOffset 滚动到顶部 tableView 时,有时它会走到一半左右?

iphone - 识别 C 变量

iphone - iPhone开发人员中System.keychain和login.keychain之间的不明确匹配