change UISwitch color

This commit is contained in:
Bob Sun 2017-02-08 00:43:59 +08:00
parent 12da14d5b4
commit 3720eab6b5
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -109,6 +109,7 @@ class SettingsTableViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
touchIDSwitch.onTintColor = UIColor(displayP3Red: 0, green: 122.0/255, blue: 1, alpha: 1)
touchIDTableViewCell.accessoryView = touchIDSwitch
touchIDSwitch.addTarget(self, action: #selector(touchIDSwitchAction), for: UIControlEvents.valueChanged)
if Defaults[.isTouchIDOn] {