supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
return UIInterfaceOrientationMaskPortrait;
}
本文介绍了一个简单的iOS应用代码片段,该代码用于指定UIWindow仅支持肖像模式的界面方向。通过使用UIInterfaceOrientationMaskPortrait,开发者可以确保应用在运行时始终以垂直方向显示。
supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
return UIInterfaceOrientationMaskPortrait;
}
843

被折叠的 条评论
为什么被折叠?