From 5e565049e26ac6541df632c31981bacde7bf980c Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Thu, 27 Jan 2011 17:44:39 -0800 Subject: Sanity in rotation handling: centralize in CYViewController, as it should be. --- UICaboodle/RVPage.mm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'UICaboodle') diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm index 4a8ea5d..a28e37c 100644 --- a/UICaboodle/RVPage.mm +++ b/UICaboodle/RVPage.mm @@ -12,10 +12,6 @@ - (void) reloadData { } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { - if ([self parentViewController]) { - return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation]; - } else { - return [super shouldAutorotateToInterfaceOrientation:orientation]; - } + return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad || orientation == UIInterfaceOrientationPortrait); } @end -- cgit v1.2.3