Created
September 11, 2014 09:25
-
-
Save ipreencekmr/2ee17c25b973305d0f09 to your computer and use it in GitHub Desktop.
This file contains 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
- (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