如何让ipad 启动时默认横屏

方法一:

plist文件的Supported interface orientations项中将Portrait top和bottom更改为Landscape left和right。


方法二:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight||interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
   
}

你可能感兴趣的:(ios)