summaryrefslogtreecommitdiff
path: root/UICaboodle/RVPage.mm
diff options
context:
space:
mode:
Diffstat (limited to 'UICaboodle/RVPage.mm')
-rw-r--r--UICaboodle/RVPage.mm43
1 files changed, 43 insertions, 0 deletions
diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm
index 3e6e692..05a1e25 100644
--- a/UICaboodle/RVPage.mm
+++ b/UICaboodle/RVPage.mm
@@ -7,13 +7,56 @@
extern bool IsWildcat_;
+@implementation UIViewController (Cydia)
+
+- (BOOL) hasLoaded {
+ return YES;
+}
+
+@end
+
@implementation CYViewController
+
- (void) setDelegate:(id)delegate {
delegate_ = delegate;
}
+
+- (id) delegate {
+ return delegate_;
+}
+
+- (void) viewWillAppear:(BOOL)animated {
+ [super viewWillAppear:animated];
+
+ if (![self hasLoaded])
+ [self reloadData];
+}
+
+- (BOOL) hasLoaded {
+ return loaded_;
+}
+
+- (void) releaseSubviews {
+ // Do nothing.
+}
+
+- (void) setView:(UIView *)view {
+ if (view == nil)
+ [self releaseSubviews];
+
+ [super setView:view];
+}
+
- (void) reloadData {
+ loaded_ = YES;
+}
+
+- (NSURL *) navigationURL {
+ return nil;
}
+
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
return IsWildcat_ || orientation == UIInterfaceOrientationPortrait;
}
+
@end