简体   繁体   English

iOS App-适用于wCompact hRegular的LaunchScreen.storyboard

[英]iOS App - LaunchScreen.storyboard for wCompact hRegular double the size of everything

I'm trying to help out a colleague with the launch screen storyboard for iOS devices and we're running into a really odd issue. 我正在尝试通过iOS设备的启动屏幕故事板来帮助一位同事,我们遇到了一个非常奇怪的问题。

Whenever we set the size class through Xcode the background image is always fullscreen and the logo always sits in the middle of the screen no matter what, but when we publish the app and test it on an iPhone 4s or 5c (don't have a 5 to hand) the logo is double the size specified in the width and height of the imageView tag in the XML. 每当我们通过Xcode设置大小类别时,背景图片始终全屏显示,徽标始终位于屏幕中间,但是无论如何,但是当我们发布该应用程序并在iPhone 4s或5c上对其进行测试时( 5手)徽标是XML中imageView标记的宽度和高度指定的大小的两倍。

The background image and logo are centered correctly on an iPhone 6, 6 plus and iPad 4th Gen. 背景图像和徽标在iPhone 6、6 plus和iPad 4th Gen上正确居中。

Does anyone know if I need to offset the position of the logo by 1/2 to compensate for retina? 有谁知道我是否需要将徽标的位置偏移1/2以补偿视网膜?

因此,对于我来说,解决此问题的方法是将大小类设置为wAny hAny,并将约束条件设置为水平和垂直中心对齐,并限制纵横比并将徽标设置为固定大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM