Set selectable to .none for some info cells
This commit is contained in:
parent
c10f6a7ba0
commit
66b8550a40
8 changed files with 11 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue