Permalink
Browse files

Added fixes for all device orientations.

  • Loading branch information...
epatel committed Oct 23, 2011
1 parent 21521d5 commit 4bbb3f23906df68e30040ea2cdfdc3bf02d072ce
@@ -25,13 +25,10 @@ - (IBAction)done {
}
-/*
- // Override to allow orientations other than the default portrait orientation.
- - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- // Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationPortrait);
- }
- */
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
+ return YES;
+}
+
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
@@ -32,13 +32,9 @@ - (void)viewDidLoad {
*/
-/*
- // Override to allow orientations other than the default portrait orientation.
- - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- // Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationPortrait);
- }
- */
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
+ return YES;
+}
- (void)flipsideViewControllerDidFinish:(FlipsideViewController *)controller {
@@ -86,7 +82,6 @@ - (IBAction)showInfo:(id)sender
[self presentModalViewController:controller animated:NO];
-
[controller release];
}
@@ -26,5 +26,12 @@
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
</dict>
</plist>
@@ -25,13 +25,10 @@ - (IBAction)done {
}
-/*
- // Override to allow orientations other than the default portrait orientation.
- - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- // Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationPortrait);
- }
- */
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
+ return YES;
+}
+
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
@@ -90,15 +90,9 @@ - (IBAction)showInfo:(id)sender
[controller release];
}
-
-
-/*
- // Override to allow orientations other than the default portrait orientation.
- - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- // Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationPortrait);
- }
- */
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
+ return YES;
+}
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
@@ -26,5 +26,12 @@
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
</dict>
</plist>
Oops, something went wrong.

0 comments on commit 4bbb3f2

Please sign in to comment.