AppDelegate: if UserDefaults.standard.bool(forKey: "register") { let controller: UIViewController? = window?.rootViewController...
Read More
Showing posts with label NSUserDefaults. Show all posts
Showing posts with label NSUserDefaults. Show all posts
UserDefaults in Swift
Store UserDefaults.standard.set(true, forKey: "Key") //Bool UserDefaults.standard.set(1, forKey: "Key") //Integer U...
Read More
save NSMutablearray in NSUserDefaults
To store the information: // Get the standardUserDefaults object, store your UITableView data array against a key, synchronize the defaul...
Read More
NSUserDefaults - storing and retrieving data (String)
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; [defaults setObject:YOUR_VALUE forKey:@"KEY_NAME"]; [defaults...
Read More
Do not open previous view controller after registration
-(void)submitButtonClicked(id)Sender{ NSUserDefaults *prefs=[NSUserDefaults standardUserDefaults]; [prefs setBool:YES forKey:@"regis...
Read More
Subscribe to:
Posts (Atom)