priore

User-Agent for all UIWebView in your app

Jun 4th, 2013
707
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×