Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Images.xcassets taking wrong image for the iPhone 6?

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

enter image description here

When i run the app i got the following result.

  1. iPhone 4s : twitter image
  2. iPhone 5 : Google image
  3. iPhone 6+ : facebook image.
  4. iPhone 6 : twitter image

everything is good. but when I run on the iPhone 6 its taking the twitter image but it should take the google image.

Is this bug of xcode?

like image 480
Sunny Shah Avatar asked Oct 19 '22 20:10

Sunny Shah


2 Answers

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!

like image 93
Ashish Kakkad Avatar answered Nov 01 '22 18:11

Ashish Kakkad


This is ridiculous from apple.

There is no any specific place where you can put the iPhone 6 images. you have to do with the condition.

like image 42
Sunny Shah Avatar answered Nov 01 '22 16:11

Sunny Shah