Skip to content

Commit

Permalink
Remove useless autorotation code since HLSViewController supports all…
Browse files Browse the repository at this point in the history
… interface orientations
  • Loading branch information
defagos committed Nov 16, 2012
1 parent a2593f7 commit dde1768
Show file tree
Hide file tree
Showing 38 changed files with 12 additions and 437 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,11 @@ - (void)viewDidLoad

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskPortrait;
}


#pragma mark Localization

- (void)localize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,6 @@ - (void)viewDidLoad

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskPortrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,6 @@ - (void)didMoveToParentViewController:(UIViewController *)parentViewController

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskAll;
}

- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
[super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,6 @@ - (void)viewDidLoad
self.view.backgroundColor = [UIColor randomColor];
}

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskAll;
}

#pragma mark Localization

- (void)localize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,6 @@ - (void)viewDidLoad
}
}

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskAll;
}

#pragma mark Localization

- (void)localize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ - (void)viewDidLoad

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskLandscape;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,14 @@ - (BOOL)shouldAutorotate
{
HLSLoggerInfo(@"Called");

if (! [super shouldAutorotate]) {
return NO;
}

return YES;
return [super shouldAutorotate];
}

- (NSUInteger)supportedInterfaceOrientations
{
HLSLoggerInfo(@"Called");

return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskAll;
return [super supportedInterfaceOrientations];
}

- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,6 @@ - (void)viewDidLoad
self.closeBarButtonItem.action = @selector(close:);
}

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskAll;
}

#pragma mark Event callbacks

- (void)close:(id)sender
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ - (void)viewDidLoad

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskPortrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,6 @@ - (void)viewDidLoad
self.view.backgroundColor = [UIColor randomColor];
}

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskAll;
}

#pragma mark Localization

- (void)localize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ - (void)viewDidLoad

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskPortrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,6 @@ - (void)viewWillDisappear:(BOOL)animated

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskPortrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,6 @@ - (void)viewDidLoad

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskPortrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,22 +108,6 @@ - (void)viewDidLoad
self.mixedFoldersCursor.delegate = self;
}

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskAll;
}

#pragma mark Memory warnings

- (void)didReceiveMemoryWarning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@ - (void)releaseViews

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskPortrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,6 @@ - (void)viewDidLoad
self.searchBar3.delegate = self;
}

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskAll;
}

#pragma mark Localization

- (void)localize
Expand Down
16 changes: 0 additions & 16 deletions CoconutKit-demo/Sources/Demos/View/Label/LabelDemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -114,22 +114,6 @@ - (void)viewDidLoad
[self reloadData];
}

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskAll;
}

#pragma mark Localization

- (void)localize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,6 @@ - (void)viewDidLoad

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskPortrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,6 @@ - (void)viewWillDisappear:(BOOL)animated
self.navigationController.toolbar.tintColor = nil;
}

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskAll;
}

#pragma mark Localization

- (void)localize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,6 @@ - (void)viewDidLoad
[self loadImages];
}

#pragma mark Orientation management

- (BOOL)shouldAutorotate
{
if (! [super shouldAutorotate]) {
return NO;
}

return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
return [super supportedInterfaceOrientations] & UIInterfaceOrientationMaskAll;
}

#pragma mark Localization

- (void)localize
Expand Down
Loading

0 comments on commit dde1768

Please sign in to comment.