 
     override func viewDidLoad() {
         super.viewDidLoad()
-        
+
         tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: Identifier)
         tableView.registerClass(SettingsTableSectionHeaderFooterView.self, forHeaderFooterViewReuseIdentifier: SectionHeaderIdentifier)
         tableView.tableFooterView = SettingsTableFooterView(frame: CGRect(x: 0, y: 0, width: view.frame.width, height: 128))
-        
+
         tableView.separatorColor = UIConstants.TableViewSeparatorColor
         tableView.backgroundColor = UIConstants.TableViewHeaderBackgroundColor
         tableView.estimatedRowHeight = 44


    override func onConfigureCell(cell: UITableViewCell) {
        super.onConfigureCell(cell)
        let control = UISwitch()
        control.onTintColor = UIConstants.ControlTintColor
        control.addTarget(self, action: "switchValueChanged:", forControlEvents: UIControlEvents.ValueChanged)
        control.on = prefs.boolForKey(prefKey) ?? defaultValue
        cell.accessoryView = control
        if let titleLabel = cell.textLabel {
            cell.detailTextLabel?.snp_makeConstraints { make in
                make.left.equalTo(titleLabel)
                make.right.equalTo(cell).offset(statusTextPadding)
                make.top.equalTo(titleLabel.snp_bottom)
            }
        }
    }

    @objc func switchValueChanged(control: UISwitch) {

    var accessoryType: UITableViewCellAccessoryType { return .None }

    var textAlignment: NSTextAlignment { return .Left }

    private(set) var enabled: Bool = true

    // Called when the cell is setup. Call if you need the default behaviour.
