Skip to content

Commit

Permalink
Start on landscape #14
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Jul 28, 2012
1 parent 6d98086 commit 1cac7f5
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 47 deletions.
5 changes: 0 additions & 5 deletions Classes/CDICreateListViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ - (void)viewWillAppear:(BOOL)animated {
}


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


#pragma mark - Actions

- (void)create:(id)sender {
Expand Down
5 changes: 0 additions & 5 deletions Classes/CDIListViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,6 @@ - (void)viewDidAppear:(BOOL)animated {
}


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


- (void)setEditing:(BOOL)editing animated:(BOOL)animated {
[super setEditing:editing animated:animated];

Expand Down
5 changes: 0 additions & 5 deletions Classes/CDIListsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ - (void)viewDidAppear:(BOOL)animated {
}


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


- (void)setEditing:(BOOL)editing animated:(BOOL)animated {
[super setEditing:editing animated:animated];

Expand Down
5 changes: 0 additions & 5 deletions Classes/CDIRenameTaskViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ - (void)viewWillAppear:(BOOL)animated {
}


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


- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
[UIView animateWithDuration:duration delay:0.0 options:UIViewAnimationOptionAllowUserInteraction animations:^{
[self _updateTextViewFrame];
Expand Down
5 changes: 0 additions & 5 deletions Classes/CDISessionsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,4 @@ - (void)viewWillAppear:(BOOL)animated {
[self.usernameTextField becomeFirstResponder];
}


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

@end
5 changes: 0 additions & 5 deletions Classes/CDISettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ - (void)viewDidUnload {
}


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


#pragma mark - Actions

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


#pragma mark - UIViewController

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


#pragma mark - UISplitViewControllerDelegate

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


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


#pragma mark - Actions

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


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


#pragma mark - Private

- (void)_authorizeWithCode:(NSString *)code {
Expand Down
2 changes: 2 additions & 0 deletions Resources/Cheddar-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
Expand Down

0 comments on commit 1cac7f5

Please sign in to comment.