I want to change the Orientation according to my application so how i can do this.Actually i am new in this field.
A:
Include the following in your UIViewController:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
Edit: If you want to limit the orientations that are acceptable, instead of return YES;
You can use return UIInterfaceOrientationLandscapeLeft | UIInterfaceOrientationPortrait;
for example.
David Kanarek
2010-01-21 03:05:03