Hello,
How do you force a view to be in landscape mode? I've tried the following code (which generates a warning), but it isn't working for me (in the view controller):
Code:
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
// Initialization code
[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
}
return self;
}
Thanks,
Justin