User-Agent for all UIWebView in your app

priore Jun 4th, 2013 543 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // User-Agent for all UIWebView in your app, originally posted by @_kims
  2. 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];
  3. [[NSUserDefaults standardUserDefaults] registerDefaults:dictionary];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand