Images.xcassets taking wrong image for the iPhone 6?

前端 未结 2 1743
天命终不由人
天命终不由人 2021-01-05 22:32

I have set the three image for the @2x @Retina 4 and @3x.

\"enter

When i run t

2条回答
  •  孤城傲影
    2021-01-05 23:14

    In iPhone 6 you will get the image which is of @2x In iPhone 5 and 5s you will get the image of Retina 4 @2x.

    Check this example image I have set here. enter image description here

    Result in iPhone 5

    enter image description here

    Result in iPhone 6

    enter image description here

    but in iPhone 4 and iPhone 6 you will get same image. For this time you have to code for different devices. Because apple does not provide the document for it. by the time if I got something new then I will post here.

    Thanks!

提交回复
热议问题