Skip to content

Commit

Permalink
Fix landscape support when compiling for iOS 5 #14
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Jul 29, 2012
1 parent 2032d71 commit b4f9ddc
Show file tree
Hide file tree
Showing 13 changed files with 100 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Classes/CDICreateListViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ - (void)viewWillAppear:(BOOL)animated {
}


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return YES;
}

return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
}


#pragma mark - Actions

- (void)create:(id)sender {
Expand Down
9 changes: 9 additions & 0 deletions Classes/CDIListViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@ - (void)setEditing:(BOOL)editing animated:(BOOL)animated {
}


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return YES;
}

return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
}


#pragma mark - SSManagedViewController

+ (Class)fetchedResultsControllerClass {
Expand Down
9 changes: 9 additions & 0 deletions Classes/CDIListsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@ - (void)setEditing:(BOOL)editing animated:(BOOL)animated {
}


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return YES;
}

return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
}


#pragma mark - SSManagedViewController

- (Class)entityClass {
Expand Down
9 changes: 9 additions & 0 deletions Classes/CDIManagedTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@ - (void)viewWillAppear:(BOOL)animated {
}


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return YES;
}

return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
}


#pragma mark - SSManagedViewController

- (void)setLoading:(BOOL)loading animated:(BOOL)animated {
Expand Down
9 changes: 9 additions & 0 deletions Classes/CDIRenameTaskViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrie
}


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return YES;
}

return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
}


#pragma mark - Actions

- (void)save:(id)sender {
Expand Down
9 changes: 9 additions & 0 deletions Classes/CDISessionsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,13 @@ - (void)viewWillAppear:(BOOL)animated {
[self.usernameTextField becomeFirstResponder];
}


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return YES;
}

return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
}

@end
9 changes: 9 additions & 0 deletions Classes/CDISettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ - (void)viewDidLoad {
}


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return YES;
}

return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
}


#pragma mark - Actions

- (void)close:(id)sender {
Expand Down
7 changes: 7 additions & 0 deletions Classes/CDISplitViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ - (id)init {
}


#pragma mark - UIViewController

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return YES;
}


#pragma mark - UISplitViewControllerDelegate

- (BOOL)splitViewController:(UISplitViewController *)svc shouldHideViewController:(UIViewController *)vc inOrientation:(UIInterfaceOrientation)orientation {
Expand Down
9 changes: 9 additions & 0 deletions Classes/CDIUpgradeViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ - (void)viewDidAppear:(BOOL)animated {
}


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return YES;
}

return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
}


#pragma mark - Actions

- (void)cancel:(id)sender {
Expand Down
9 changes: 9 additions & 0 deletions Classes/CDIWebSignInViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ - (void)viewDidLoad {
}


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return YES;
}

return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
}


#pragma mark - Private

- (void)_authorizeWithCode:(NSString *)code {
Expand Down
9 changes: 9 additions & 0 deletions Classes/CDIWebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ - (void)viewWillDisappear:(BOOL)animated {
}


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return YES;
}

return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
}


#pragma mark - URL Loading

- (void)loadURL:(NSURL *)url {
Expand Down
4 changes: 2 additions & 2 deletions Resources/Cheddar-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<string>1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -51,7 +51,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.0.0.3</string>
<string>1.1.0.1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIAppFonts</key>
Expand Down
2 changes: 1 addition & 1 deletion Vendor/CheddarKit

0 comments on commit b4f9ddc

Please sign in to comment.