NSUserDefaults

added usage of NSUserDefaults to save settings