Created
June 16, 2015 02:52
-
-
Save codebeaulieu/359a29f57883805e32e3 to your computer and use it in GitHub Desktop.
setting swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Setting: NSObject { | |
var settingsLabel : String! | |
var switchState : Bool? | |
var timing : Int? | |
override init() { | |
super.init() | |
} | |
init(label: String, state: Bool ) { | |
settingsLabel = label | |
switchState = state as Bool | |
} | |
init(label: String, time: Int) { | |
settingsLabel = label | |
timing = time as Int | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment