0
在应用程序中,我只想支持UIInterfaceOrientationLandscapeRight。所以我为此做了两件事。 1)在proj plist文件中将初始界面方向设置为UIInterfaceOrientationLandscapeRight。 2)在每个视图控制器中编写该代码。 (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {interfaceIrl(UIInterfaceOrientationLandscapeRight);}} }iPad方向问题
但是,当我切换到另一个视图使用removeFromSuperview和addSubview方法来替换旧视图与新视图时,新视图的方向不正确。
How to solve this problem ???