]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/RVPage.mm
Workaround to fix the Settings Controller popup on initial launch.
[cydia.git] / UICaboodle / RVPage.mm
index 932b45ee4ba30a480b094574bd88507e902e9fa1..81c8739c37b145f3aef6f788e5a17d52aa49d907 100644 (file)
@@ -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