June 2011
Intermediate to advanced
590 pages
19h 31m
English
If your application only makes sense in landscape mode, you can force it to run that way. First, in your view controller implement shouldAutorotateToInterfaceOrientation: to only return YES for landscape orientations.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)x
{
return UIInterfaceOrientationIsLandscape(x);
}
An application’s Info.plist contains a key-value pair that specifies the valid initial orientations of the application. There is also an easy-to-use interface for changing this value: select the project from the project navigator, then the HeavyRotation target from ...
Read now
Unlock full access