|
@@ -115,8 +115,9 @@ extension LockOptionViewViewController:UITableViewDelegate, UITableViewDataSourc
|
|
|
|
|
|
cell.selectionStyle = .none
|
|
|
|
|
|
- let key = itemsInfo.map({$0.key})[indexPath.section]
|
|
|
- cell.label.text = itemsInfo[key]?[indexPath.row] ?? ""
|
|
|
+ let key:Int = indexPath.section + 1
|
|
|
+
|
|
|
+ cell.label.text = itemsInfo[String(key)]?[indexPath.row] ?? ""
|
|
|
cell.switchButton.tag = indexPath.row
|
|
|
|
|
|
cell.switchButton.addTarget(self, action: #selector(switchChanged(sender:)), for: .valueChanged)
|
|
@@ -124,7 +125,7 @@ extension LockOptionViewViewController:UITableViewDelegate, UITableViewDataSourc
|
|
|
|
|
|
switch indexPath.section {
|
|
|
case 1:
|
|
|
- cell.switchButton.isEnabled = true
|
|
|
+// cell.switchButton.isEnabled = true
|
|
|
if let temp = userDefaults.object(forKey: "fingerprint") as? String{
|
|
|
cell.switchButton.isOn = temp == "ON"
|
|
|
}else{
|