Open
Description
I'm having an application which can be used in the landscape also.
But left menu should be used in portrait mode only. So center view can be rotated to either landscape left or landscape right.
I wrote below code in LeftMenu, but it is also preventing Centerview to being rotated.
-(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
if (UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation)){
[[UIDevice currentDevice] setValue: [NSNumber numberWithInteger:UIInterfaceOrientationPortrait] forKey:@"orientation"];
}
}
How can I achieve this (leftmenu should be in portrait only while centerView can be used in landscape and portrait)?
Metadata
Metadata
Assignees
Labels
No labels