我的应用程序中有两个视图。一个(默认情况下)是横向。当用户单击某个菜单时,我需要出现纵向视图。
我有所有的代码,我正在尝试使用它:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
但该应用程序仍以横向显示下一个视图。我想不通。任何帮助都会很棒。