嫖来的,设置UIWebview的ua
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];