inf*_*eqd 3 landscape storyboard ipad
我正在创建一个仅支持LANDSDCAPE模式的iPad应用程序.我正在使用故事板.
即使在执行以下操作后,当模拟器以横向模式启动时,应用程序也仅以纵向模式启动.请帮助我如何使应用程序以横向模式启动并始终保持该模式.
在此先感谢您的帮助.我在网上搜索过但是没有答案.
在模拟公制下,选择"风景".
还要确保在视图控制器实现中使用此方法:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}
Run Code Online (Sandbox Code Playgroud)