Sketch to Xcode Image size? (Partition)

I am working with Sketch using Bohemian Coding. It has preinstalled iPhone mounts that include 640x960 and 640x1136, but when I export images to Xcode, the size and position of the images are incorrect. Do I need to resize my images? Is there a way to create images in the correct size every time?

Although the Sketch image is for 640x960, in another project I made 640x1136 images, and it did the same.


Screenshots enter image description here

enter image description here

+3
source share
2 answers

, , "AC", , , , XCode . "@2x.png"?

:

, Sketch, 640px by 1136px. Also export as: Double size (@2x), Half size (@1x) . Finder reports - :

Generated files suffix ==> "@2x.png"        ".png" (without suffix)
===================
Actual file pixels
"Double size"              1280 x 2272      640 x 1136
"Half size"                640  x 1136      320 x 568

, , , , Double size Half size, , , . , " " @2x png .

TL: DR - " : "

+1

:

  • 640x1136
  • 1/2 (@1x)
  • / 2, XCode
0

All Articles