Set selectable to .none for some info cells

This commit is contained in:
Bob Sun 2017-04-05 11:07:05 -07:00
parent c10f6a7ba0
commit 66b8550a40
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
8 changed files with 11 additions and 9 deletions

View file

@ -54,6 +54,7 @@ class BasicStaticTableViewController: UITableViewController, MFMailComposeViewCo
switch cellDataStyle ?? .defaultStyle {
case .value1:
cell = UITableViewCell(style: .value1, reuseIdentifier: "value1 cell")
cell?.selectionStyle = .none
default:
cell = UITableViewCell(style: .default, reuseIdentifier: "default cell")
}
@ -65,6 +66,7 @@ class BasicStaticTableViewController: UITableViewController, MFMailComposeViewCo
cell?.accessoryType = accessoryType
} else {
cell?.accessoryType = .disclosureIndicator
cell?.selectionStyle = .default
}
cell?.textLabel?.text = cellData[CellDataKey.title] as? String