I’m using ios6 version for generating a new Ipad app. In my app i’m creating a split view. That split view has to always in a landscape mode. App is working in ipad 6.0 simulator. But not working in ipad 5.0 simulator. I want to run the app both ipad 6.0 and ipad 5.0.
I’m using this code
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscape;
}
-(BOOL) shouldAutorotate {
return NO;
}
you can do in ios6 like this way:-
and check every time in
ViewWillApeardevice Oriantation like:-UPDATE
likely people use checking device
orientationlike below way in putting this line in toViewWillApear:-and
IN IOS5 only landscap you can do like bellow: