Skip to content

Commit

Permalink
Change return type of supportedInterfaceOrientations.
Browse files Browse the repository at this point in the history
  • Loading branch information
tiembo committed May 16, 2016
1 parent cb4561f commit 322b17f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CutePetsExample/InstructionsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ @interface InstructionsViewController ()

@implementation InstructionsViewController

- (NSUInteger)supportedInterfaceOrientations {
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAllButUpsideDown;
}

Expand Down
2 changes: 1 addition & 1 deletion CutePetsExample/NavigationController.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ @interface NavigationController ()

@implementation NavigationController

- (NSUInteger)supportedInterfaceOrientations {
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return self.topViewController.supportedInterfaceOrientations;
}

Expand Down
2 changes: 1 addition & 1 deletion CutePetsExample/ResultsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ @interface ResultsViewController () <UITableViewDataSource, UITableViewDelegate>

@implementation ResultsViewController

- (NSUInteger)supportedInterfaceOrientations {
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAllButUpsideDown;
}

Expand Down
2 changes: 1 addition & 1 deletion CutePetsExample/UserInfoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ @interface UserInfoViewController () <UIPickerViewDataSource, UIPickerViewDelega

@implementation UserInfoViewController

- (NSUInteger)supportedInterfaceOrientations {
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}

Expand Down
2 changes: 1 addition & 1 deletion CutePetsExample/VoteViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ - (void)updateViewConstraints {
[super updateViewConstraints];

UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
if (UIDeviceOrientationIsPortrait(orientation)) {
if (UIInterfaceOrientationIsPortrait(orientation)) {
if (self.landscapeConstraints) {
[self.view removeConstraints:self.landscapeConstraints];
}
Expand Down

0 comments on commit 322b17f

Please sign in to comment.