I have been having trouble keeping a setting in my app that made me status of I in fact, UISwitch default is turned on, but when my app is updated to a new version, it is stopped I found out that if the user has opened the Settings menu in version 1.0, so it is no problem, but if They have never changed the setting, or set The eing menu is also opened, so this is a problem. Therefore, this one issue should be somewhere in the viewWillAppear () , but I do not know what it is. The code I switch is for state storage really looks overcomplicated This is the code I have in my settings menu. @IBAction function dupOffOnSwitch (this: AnyObject) {if dupSwitch.on == true {autoAdjust = true println (autoAdjust)} else {autoAdjust = false println (autoAdjust)} NSUserDefaults.standardUserDefaults ( ) setBool (autoAdjust, forKey: "autoAdjustSettings").} viewWillAppear function overrides (animated: bool) {autoAdjust = NSUserDefaults.standardUserDefaults (). boolForKey ( "autoA...