Question: what is nsuserdefaults in objective c?
Answer: NSUserDefaults allows you to easily read and save data from anywhere in your app. The class provides methods for accessing common types such as floats, doubles, integers, and booleans; you can also store objects of type NSData, NSString, NSNumber, NSDate, NSArray, or NSDictionary.