ehll

导航

嫖来的,设置UIWebview的ua

1     NSDictionary *dictionnary = [[NSDictionary alloc] initWithObjectsAndKeys:@"Your desired user agent", @"UserAgent", nil];
2     [[NSUserDefaults standardUserDefaults] registerDefaults:dictionnary];
3     [dictionnary release];

 

posted on 2013-03-04 14:36  ehll  阅读(339)  评论(0)    收藏  举报