Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed orientation bug

  • Loading branch information...
commit 5ae67d3cdfcd5ffebacc0548d3fedf67b5827833 1 parent b149980
@szeryf authored
View
3  Classes/ChangeHoursController.m
@@ -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 {
View
2  Classes/OptionsController.m
@@ -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 {
View
2  Classes/SelectDaysController.m
@@ -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 {
View
2  Classes/WeekProgressViewController.m
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.