I want to put an image on background of the sign up view. It needs to fill all screen density like iPhone 4,5,6,6S and iPAD. I will support portrait only.
我想在注册视图的背景上放置一个图像。它需要填充iPhone 4,5,6,6S和iPAD等所有屏幕密度。我只支持肖像。
What I have to do?
我该怎么办?
- Should I make a
1920X1080
(iPhone 6s Plus) and put that in background view and then set auto layout to cover full screen. - Should I make
ImageName@2x
with size of640X960
,ImageName-667h@2x
1334X750
iPhone 6,ImageName-736h@3x
1920X1080
iPhone 6Plus,ImageName-568h@2x
640X1136
for iPhone 5?
我应该制作1920X1080(iPhone 6s Plus)并将其放在背景视图中,然后将自动布局设置为全屏幕。
我应该制作尺寸为640X960的ImageName @ 2x,iPhone5的ImageName-667h @ 2x 1334X750,iPhone 6的ImageName-736h @ 3x 1920X1080,iPhone 5的ImageName-568h @ 2x 640X1136?
1 个解决方案
#1
1
You should stick to the 2nd option (also consider using an asset catalog for that purpose instead of a set of images) because:
您应该坚持第二个选项(也考虑使用资产目录而不是一组图像),因为:
- It will let the app package thinning feature to work.
- It will help you avoid image distortion caused by image resizing.
- It will reduce CPU rendering (which is implied by image re-scaling).
它将让app package thinning功能正常工作。
它可以帮助您避免图像大小调整造成的图像失真。
它将减少CPU渲染(这是图像重新缩放所暗示的)。
I hope this helps you make a wise choice. Cheers.
我希望这有助于你做出明智的选择。干杯。
#1
1
You should stick to the 2nd option (also consider using an asset catalog for that purpose instead of a set of images) because:
您应该坚持第二个选项(也考虑使用资产目录而不是一组图像),因为:
- It will let the app package thinning feature to work.
- It will help you avoid image distortion caused by image resizing.
- It will reduce CPU rendering (which is implied by image re-scaling).
它将让app package thinning功能正常工作。
它可以帮助您避免图像大小调整造成的图像失真。
它将减少CPU渲染(这是图像重新缩放所暗示的)。
I hope this helps you make a wise choice. Cheers.
我希望这有助于你做出明智的选择。干杯。