Permalink
Browse files

fixed orientation bug

  • Loading branch information...
1 parent b149980 commit 5ae67d3cdfcd5ffebacc0548d3fedf67b5827833 Przemyslaw Kowalczyk committed Jul 23, 2011
@@ -44,7 +44,8 @@ - (void)viewDidLoad {
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
+ // Return YES for supported orientations
+ return interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft;
}
- (void)didReceiveMemoryWarning {
@@ -27,7 +27,7 @@ - (void)viewDidLoad {
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
+ return interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft;
}
- (void)didReceiveMemoryWarning {
@@ -28,7 +28,7 @@ - (void)viewDidLoad {
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
+ return interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft;
}
- (void)dealloc {
@@ -73,7 +73,7 @@ - (void)viewDidLoad {
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
+ return interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft;
}
- (void)didReceiveMemoryWarning {

0 comments on commit 5ae67d3

Please sign in to comment.