i am working with the application and want to stop the rotation when i move the device to landscape mode. Please help me out regarding this. Your help will be much appriciable.
Auto rotation or the views
103 views Asked by Sahil At
6
There are 6 answers
0
On
As above is one way to set portrait apps ....
but another way throughout coding like u set particular view portrait...
add this method in your view controller.
- (BOOL)shouldAutorotate;
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations;
{
return UIInterfaceOrientationMaskPortrait ;
}
u can also set the multiple value like ..
- (NSUInteger)supportedInterfaceOrientations;
{
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
}
it is useful for the different view set different orientation ..
Best of luck..



Select the projectand then go to theGeneral Tab. There you can see the sectionDeployment Infowith the optionDevice Orientation. Unselect all the orientations you don't need.