我的 iPad 应用程序在 iPad Pro 上 运行 时显示不正确
My iPad application is not displaying properly while it is running on iPad Pro
我开发了一个 iPad 应用程序,它在 iPad mini 和 iPad 2 上运行良好。问题是当我尝试 运行 它在 iPad Pro,显示的大小和iPad Air 2一样。请参考截图。它在 iPad Pro 模拟器中运行良好。
您需要应用约束,以便视图根据屏幕大小调整大小。图像的分辨率是多少?在 UIImageView are you using ?
分享更多代码。
See AppleDoc on Autolayout
要么
See a tutorial on autolayout
另见:
UIViewContentMode
尝试添加默认图片
2048 x 2732(纵向)
2732 x 2048(横向)
如果您使用故事板,您也可以这样做
打开情节提要select 屏幕将 wAny hAny 更改为 wRegular hRegular 并查看其是否反映在预览中?根据您的要求。
我开发了一个 iPad 应用程序,它在 iPad mini 和 iPad 2 上运行良好。问题是当我尝试 运行 它在 iPad Pro,显示的大小和iPad Air 2一样。请参考截图。它在 iPad Pro 模拟器中运行良好。
您需要应用约束,以便视图根据屏幕大小调整大小。图像的分辨率是多少?在 UIImageView are you using
分享更多代码。 See AppleDoc on Autolayout 要么 See a tutorial on autolayout
另见:
UIViewContentMode
尝试添加默认图片
2048 x 2732(纵向)
2732 x 2048(横向)
如果您使用故事板,您也可以这样做
打开情节提要select 屏幕将 wAny hAny 更改为 wRegular hRegular 并查看其是否反映在预览中?根据您的要求。