Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MaDDaemoN

macrumors newbie
Original poster
Dec 1, 2009
3
0
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:
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.