
HI,
How to display your view in landscape orientation only?
Thanks

Hi,
You use the following code in your view controller class:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Overriden to allow any orientation.
//return YES;
return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.