Created
October 25, 2013 23:43
-
-
Save priore/7163516 to your computer and use it in GitHub Desktop.
User-Agent for all UIWebView in your app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // User-Agent for all UIWebView in your app, originally posted by @_kims | |
| NSDictionary *dictionary = [[NSDictionary alloc] initWithObjectsAndKeys:@"Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3", @"UserAgent", nil]; | |
| [[NSUserDefaults standardUserDefaults] registerDefaults:dictionary]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment