#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