NSUserDefaults setter

- (void)customSet {
    [[NSUserDefaults standardUserDefaults] setObject:textField.text forKey:@"mainTitle"];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

NSUserDefaults getter

- (void)customGet {
    NSString *title = [[NSUserDefaults standardUserDefaults] objectForKey:@"mainTitle"];
}

results matching ""

    No results matching ""