]> 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 a92058ecde59107f41cb160227dbc1a364de4ecf..81c8739c37b145f3aef6f788e5a17d52aa49d907 100644 (file)
@@ -1,71 +1,17 @@
 #import "RVPage.h"
 
 #import <Foundation/Foundation.h>
-#import <UIKit/UIView.h>
+#import <UIKit/UIKit.h>
 
 #import "RVBook.h"
 
-@implementation RVPage
-
-- (NSString *) title {
-    [self doesNotRecognizeSelector:_cmd];
-    return nil;
-}
-
-- (NSString *) backButtonTitle {
-    return nil;
-}
-
-- (NSString *) leftButtonTitle {
-    return nil;
-}
-
-- (NSString *) rightButtonTitle {
-    return nil;
-}
-
-- (void) _rightButtonClicked {
-    [self doesNotRecognizeSelector:_cmd];
-}
-
-- (void) _leftButtonClicked {
-    [self doesNotRecognizeSelector:_cmd];
-}
-
-- (UIView *) accessoryView {
-    return nil;
-}
-
-- (void) setPageActive:(BOOL)active {
-}
-
-- (void) resetViewAnimated:(BOOL)animated {
-    [self doesNotRecognizeSelector:_cmd];
-}
-
-- (void) setTitle:(NSString *)title {
-    [book_ setTitle:title forPage:self];
-}
-
-- (void) setBackButtonTitle:(NSString *)title {
-    [book_ setBackButtonTitle:title forPage:self];
-}
-
-- (void) reloadButtons {
-    [book_ reloadButtonsForPage:self];
+@implementation CYViewController
+- (void) setDelegate:(id)delegate {
+    delegate_ = delegate;
 }
-
 - (void) reloadData {
 }
-
-- (id) initWithBook:(RVBook *)book {
-    if ((self = [super initWithFrame:[book pageBounds]]) != nil) {
-        book_ = book;
-    } return self;
-}
-
-- (void) setDelegate:(id)delegate {
-    delegate_ = delegate;
+- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
+    return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad || orientation == UIInterfaceOrientationPortrait);
 }
-
 @end