diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-11-08 11:46:59 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-11-08 11:46:59 -0500 |
| commit | 5fa81da81260d65113f57a293b6256d334fe8e2d (patch) | |
| tree | 01d3dd7ab7a1febccd20de1756d0801a64ae64e9 /StoneIsland/platforms/ios/Stone Island/Classes/MainViewController.m | |
| parent | e5652e9cd560ccda249819857c207643820b075f (diff) | |
| parent | 7773d1d0686de69504e9b820efdb3e94d72eff04 (diff) | |
le build
Diffstat (limited to 'StoneIsland/platforms/ios/Stone Island/Classes/MainViewController.m')
| -rw-r--r--[-rwxr-xr-x] | StoneIsland/platforms/ios/Stone Island/Classes/MainViewController.m | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/StoneIsland/platforms/ios/Stone Island/Classes/MainViewController.m b/StoneIsland/platforms/ios/Stone Island/Classes/MainViewController.m index a066b197..3f3a0c8e 100755..100644 --- a/StoneIsland/platforms/ios/Stone Island/Classes/MainViewController.m +++ b/StoneIsland/platforms/ios/Stone Island/Classes/MainViewController.m @@ -84,12 +84,6 @@ // e.g. self.myOutlet = nil; } -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation -{ - // Return YES for supported orientations - return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation]; -} - /* Comment out the block below to over-ride */ /* @@ -97,35 +91,20 @@ { return[super newCordovaViewWithFrame:bounds]; } -*/ - -#pragma mark UIWebDelegate implementation -- (void)webViewDidFinishLoad:(UIWebView*)theWebView +- (NSUInteger)supportedInterfaceOrientations { - // Black base color for background matches the native apps - theWebView.backgroundColor = [UIColor blackColor]; - - return [super webViewDidFinishLoad:theWebView]; + return [super supportedInterfaceOrientations]; } -/* Comment out the block below to over-ride */ - -/* - -- (void) webViewDidStartLoad:(UIWebView*)theWebView +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { - return [super webViewDidStartLoad:theWebView]; -} - -- (void) webView:(UIWebView*)theWebView didFailLoadWithError:(NSError*)error -{ - return [super webView:theWebView didFailLoadWithError:error]; + return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation]; } -- (BOOL) webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType +- (BOOL)shouldAutorotate { - return [super webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType]; + return [super shouldAutorotate]; } */ |
