ios - How to identify UIWebView as Safari -
hi uiwebview identifying mozzila/5.0 (iphone; cpu iphone os 6_1_2 mac os x), , safari identifying safari ios6. , webpage want load uiwebview support safari... there way change programmatically? used https://browsercheck.qualys.com/ check browser.. thank response!
change default useragent of web browser:
nsdictionary *dictionary = [nsdictionary dictionarywithobjectsandkeys:@"apple-iphone/501.347", @"useragent", nil]; [[nsuserdefaults standarduserdefaults] registerdefaults:dictionary]; [[nsuserdefaults standarduserdefaults] synchronize];
Comments
Post a Comment