X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/b5e7eebb25026afcb8052552a5fedb7984c08a38..0c1cb67a559b2077dddedf7eab3251a3e4cc0812:/UICaboodle/RVPage.mm diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm index 932b45ee..81c8739c 100644 --- a/UICaboodle/RVPage.mm +++ b/UICaboodle/RVPage.mm @@ -5,13 +5,13 @@ #import "RVBook.h" -@implementation UCViewController -- (void)setDelegate:(id)delegate { - delegate_ = delegate; -} -- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { - return NO; /* XXX: return YES; */ +@implementation CYViewController +- (void) setDelegate:(id)delegate { + delegate_ = delegate; } - (void) reloadData { } +- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { + return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad || orientation == UIInterfaceOrientationPortrait); +} @end