1 NSDictionary *dictionnary = [[NSDictionary alloc] initWithObjectsAndKeys:@"Your desired user agent", @"UserAgent", nil]; 2 [[NSUserDefaults standardUserDefaults] registerDefaults:dictionnary]; 3 [dictionnary release];
1 NSDictionary *dictionnary = [[NSDictionary alloc] initWithObjectsAndKeys:@"Your desired user agent", @"UserAgent", nil]; 2 [[NSUserDefaults standardUserDefaults] registerDefaults:dictionnary]; 3 [dictionnary release];
转载于:https://www.cnblogs.com/ehll/archive/2013/03/04/2942710.html