Im having a trouble: when i add one view ( lets call it #1) as subview to window - everything is ok, it is shown in landscape. But when i remove that subview(#1) and add next one(#2) - portrait mode appears...and i need landscape for second one too(#2). What is wrong? I`ve defined in Info.plist that my app should use UIInterfaceOrientationLandscapeRight, and added a method to every view:
By the way, if i first add view #2 to window - it is shown in landscape, and second view (now it is #1) appears in portrait.
Code:
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{return (interfaceOrientation==UIInterfaceOrientationLandscapeRight);
}
By the way, if i first add view #2 to window - it is shown in landscape, and second view (now it is #1) appears in portrait.