priore

User-Agent for all UIWebView in your app

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