summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/Stone Island/Classes/MainViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/Stone Island/Classes/MainViewController.m')
-rw-r--r--[-rwxr-xr-x]StoneIsland/platforms/ios/Stone Island/Classes/MainViewController.m33
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];
}
*/