3 #import <Foundation/Foundation.h>
4 #import <UIKit/UIKit.h>
6 extern bool IsWildcat_;
8 @implementation UIViewController (Cydia)
22 @implementation CYViewController
24 - (void) setDelegate:(id)delegate {
32 - (void) viewWillAppear:(BOOL)animated {
33 [super viewWillAppear:animated];
35 // Load on first appearance. We don't need to set the loaded flag here
36 // because it is set for us the first time -reloadData is called.
37 if (![self hasLoaded])
45 - (void) releaseSubviews {
49 - (void) setView:(UIView *)view {
50 // Nasty hack for 2.x-compatibility. In 3.0+, we can and
51 // should just override -viewDidUnload instead.
53 [self releaseSubviews];
61 // This is called automatically on the first appearance of a controller,
62 // or any other time it needs to reload the information shown. However (!),
63 // this is not called by any tab bar or navigation controller's -reloadData
64 // method unless this controller returns YES from -hadLoaded.
73 - (NSURL *) navigationURL {
77 - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
78 return IsWildcat_ || orientation == UIInterfaceOrientationPortrait;