SAccoutSecViewController.swift 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // SAccoutSecViewController.swift
  3. // O2Platform
  4. //
  5. // Created by 刘振兴 on 2016/10/17.
  6. // Copyright © 2016年 zoneland. All rights reserved.
  7. //
  8. import UIKit
  9. import Eureka
  10. class SAccoutSecViewController: FormViewController {
  11. override func viewDidLoad() {
  12. super.viewDidLoad()
  13. SwitchRow.defaultCellUpdate = {
  14. cell,row in
  15. cell.textLabel?.font = setting_value_textFont
  16. cell.textLabel?.textColor = setting_value_textColor
  17. cell.detailTextLabel?.font = setting_value_textFont
  18. cell.detailTextLabel?.textColor = setting_value_textColor
  19. cell.accessoryType = .disclosureIndicator
  20. }
  21. //设置配置列
  22. form +++ Section(footer: "开启账号保护后,在不常用的手机上登录智合,需要通过短信验证你的手机号码。")
  23. <<< SwitchRow("set_none") {
  24. $0.title = "帐号保护"
  25. $0.value = AppConfigSettings.shared.accountIsSecurity
  26. }.onChange { row in
  27. AppConfigSettings.shared.accountIsSecurity = row.value!
  28. }
  29. // Do any additional setup after loading the view.
  30. }
  31. override func didReceiveMemoryWarning() {
  32. super.didReceiveMemoryWarning()
  33. // Dispose of any resources that can be recreated.
  34. }
  35. /*
  36. // MARK: - Navigation
  37. // In a storyboard-based application, you will often want to do a little preparation before navigation
  38. override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  39. // Get the new view controller using segue.destinationViewController.
  40. // Pass the selected object to the new view controller.
  41. }
  42. */
  43. }