简体   繁体   English

iPhone:目前为止适合所有iPhone屏幕的登录屏幕图像

[英]iPhone: Login Screen image that fit all iPhone screens as of now

I've been researching this and I got different answers. 我一直在研究这个问题,得到了不同的答案。 I want to create a login screen image that fits all the current iPhone screens. 我想创建一个适合所有当前iPhone屏幕的登录屏幕图像。 This image will take up the whole iPhone screen. 该图像将占据整个iPhone屏幕。 What is the best way accomplishing this? 做到这一点的最佳方法是什么? Should I make separate images for each iPhone screen? 我应该为每个iPhone屏幕分别制作图像吗? Or is there a better way? 或者,还有更好的方法? I am very confused on what is best practice. 我对最佳做法感到非常困惑。

What size does the @2x and @3x need to be? @ 2x和@ 3x的大小是多少?

If you create the different images for each screen it will give you the better result with pixels. 如果为每个屏幕创建不同的图像,则像素效果会更好。 (You have more content on login screen then choose this option) Otherwise create the one image and use the auto layout or size class to make it looks good. (您在登录屏幕上有更多内容,然后选择此选项)。否则,创建一个图像并使用自动布局或尺寸类别使其看起来不错。

@2x and @3x is for notations to size. @ 2x和@ 3x用于表示大小。

Since your image will take up whole iPhone screen frame, you might thinking of using Auto layout constraint which will resize/fix your image based on iPhones' frame as better approach. 由于您的图像将占据iPhone的整个屏幕框架,因此您可能会考虑使用自动布局约束,该约束将根据iPhone的框架调整图像大小/固定图像,这是更好的方法。 useful link that you can refer: 您可以参考的有用链接:

https://developer.apple.com/library/ios/documentation/ToolsLanguages/Conceptual/Xcode_Overview/BuildingforMultipleScreenSizes.html https://developer.apple.com/library/ios/documentation/ToolsLanguages/Conceptual/Xcode_Overview/BuildingforMultipleScreenSizes.html

and for the size you can refer: 对于大小,您可以参考:

https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html

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

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