Skip to content

Instantly share code, notes, and snippets.

@ipreencekmr
Created September 11, 2014 09:25
Show Gist options
  • Save ipreencekmr/2ee17c25b973305d0f09 to your computer and use it in GitHub Desktop.
Save ipreencekmr/2ee17c25b973305d0f09 to your computer and use it in GitHub Desktop.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"Mozilla/5.0 (iPad; CPU OS 7_1 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Mobile/11D167", @"UserAgent", nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:dictionary];
return YES;
}
- (void)viewDidLoad
{
NSURL *url = [NSURL URLWithString:@"http://182.18.165.252/restserver/index.php/details?id=24"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
[__webView.scrollView setScrollEnabled:NO];
[__webView setDelegate:self];
[__webView setAllowsInlineMediaPlayback:YES];
[__webView setUserInteractionEnabled:YES];
[__webView setMediaPlaybackRequiresUserAction:YES];
[__webView loadRequest:request];
[super viewDidLoad];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment