我正在使用 iOS Swift 2.0 应用程序。UITableViewCell
我一生都无法弄清楚如何在披露指示符 chevron 之前的右侧设置文本(除了创建 custom cell.accessoryView
)。
这是“设置应用程序”的屏幕截图,正是我想要实现的。
我正在使用 iOS Swift 2.0 应用程序。UITableViewCell
我一生都无法弄清楚如何在披露指示符 chevron 之前的右侧设置文本(除了创建 custom cell.accessoryView
)。
这是“设置应用程序”的屏幕截图,正是我想要实现的。
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "CellId") ?? UITableViewCell(style: UITableViewCellStyle.value1, reuseIdentifier: "CellId")
cell.accessoryType = UITableViewCellAccessoryType.disclosureIndicator
cell.textLabel?.text = "Main text"
cell.detailTextLabel?.text = "Detail Text"
return cell
}