]>
Commit | Line | Data |
---|---|---|
275d8115 | 1 | #import <UICaboodle/UCPlatform.h> |
7e9a36b6 | 2 | |
facbc56d | 3 | #import <UIKit/UIKit.h> |
7b0ce2da | 4 | |
35f0a3b5 GP |
5 | @interface UIViewController (Cydia) |
6 | - (BOOL) hasLoaded; | |
7 | @end | |
8 | ||
9b623dac | 9 | @interface CYViewController : UIViewController { |
bc11cf5b | 10 | id delegate_; |
fe8e721f | 11 | BOOL loaded_; |
7e9a36b6 | 12 | } |
35f0a3b5 GP |
13 | |
14 | // The default implementation of this method is essentially a no-op, | |
15 | // but calling the superclass implementation is *required*. | |
c21004b9 | 16 | - (void) reloadData; |
35f0a3b5 GP |
17 | // This URL is used to save the state of the view controller. Return |
18 | // nil if you cannot or should not save the URL for this page. | |
fe8e721f | 19 | - (NSURL *)navigationURL; |
35f0a3b5 GP |
20 | // By default, this delegate is unused. However, it's provided here in case |
21 | // you need some kind of delegate in a subclass. | |
fe8e721f | 22 | - (void) setDelegate:(id)delegate; |
35f0a3b5 GP |
23 | - (id)delegate; |
24 | // Override this in subclasses if you manage the "has seen first load" state yourself. | |
25 | - (BOOL) hasLoaded; | |
26 | // This is called when the view managed by the view controller is released. | |
27 | // That is not always when the controller itself is released: it also can | |
28 | // happen when more memory is needed by the system or whenever the controller | |
29 | // just happens not to be visible. | |
fe8e721f | 30 | - (void) releaseSubviews; |
7e9a36b6 | 31 | @end |
b5e7eebb | 32 |