]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/RVPage.mm
Fix 'resubmit form' dialog: new alert API crash.
[cydia.git] / UICaboodle / RVPage.mm
index 932b45ee4ba30a480b094574bd88507e902e9fa1..4a8ea5de01e40ce518a7edc06b0c8fa37d5e85d4 100644 (file)
@@ -5,13 +5,17 @@
 
 #import "RVBook.h"
 
-@implementation UCViewController 
+@implementation CYViewController
 - (void)setDelegate:(id)delegate {
-       delegate_ = delegate;
-}
-- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
-       return NO; /* XXX: return YES; */
+    delegate_ = delegate;
 }
 - (void) reloadData {
 }
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
+    if ([self parentViewController]) {
+        return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation];
+    } else {
+        return [super shouldAutorotateToInterfaceOrientation:orientation];
+    }
+}
 @end