我正在为 iPad 创建横向应用程序,但是当我运行该应用程序时,我发现主屏幕显示为纵向。怎么解决呢?
最佳答案
选择目标,在“支持的设备方向”中仅选择横向左和横向右选项。也在您的 roo View Controller 集中选择
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if(UIInterfaceOrientationIsLandscape(interfaceOrientation))
return YES;
return NO;
}
关于iphone - iPad 的横向应用程序没有主屏幕横向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11390073/