#import "RVBook.h"
-@implementation UCViewController
-- (void)setDelegate:(id)delegate {
- delegate_ = delegate;
-}
-- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
- return NO; /* XXX: return YES; */
+@implementation CYViewController
+- (void) setDelegate:(id)delegate {
+ delegate_ = delegate;
}
- (void) reloadData {
}
+- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
+ return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad || orientation == UIInterfaceOrientationPortrait);
+}
@end