我想创建基于 iPad windows 的应用程序,默认情况下支持方向 windows 应用程序不支持方向如何在 iPad 中基于 windows 的应用程序中启用方向支持。
谢谢
我想创建基于 iPad windows 的应用程序,默认情况下支持方向 windows 应用程序不支持方向如何在 iPad 中基于 windows 的应用程序中启用方向支持。
谢谢
该窗口没有旋转功能。它在纵向模式下得到缓解。如果你想让某些东西随着设备旋转,你应该使用 UIViewController。它必须实现方法 shouldAutorotateToInterfaceOrientation 并为您的方向返回 true 或为所有方向删除它。
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
您还应该在项目设置 (ProjectName-Info.plist) 中更改它。