Images.xcassets accept the wrong image for iPhone 6?

I set three images for @ 2x @Retina 4 and @ 3x.

enter image description here

When I launched the application, I got the following result.

  • iPhone 4s : twitter image
  • iPhone 5 : Google Image
  • iPhone 6+ : facebook image.
  • iPhone 6 : twitter image

all is well. but when I run on iPhone 6 its image is twitter , but it should have a google image.

Is this an xcode error?

+5
source share
2 answers

It is funny from an apple.

There is no specific place where you can place iPhone 6 images. You must make this condition.

+1
source

On iPhone 6, you get an image that has a value of @ 2x On iPhone 5 and 5, you get an image of Retina 4 @ 2x.

Check out this sample image that I set here. enter image description here

Result in iPhone 5

enter image description here

Result in iPhone 6

enter image description here

but on iPhone 4 and iPhone 6 you get the same image. During this time, you need to code for different devices. Because the apple does not provide a document for him. by then, if I get something new, then I will post here.

Thanks!

+2
source

Source: https://habr.com/ru/post/1209585/


All Articles