1192805
1192805

Reputation: 1048

iPhone 6+ simulator loads @2x image instead of @3x image

I have @1x, @2x, and @3x images in an asset catalog and verified their resolutions are correct. But when running 6+ simulator and printing the UIImage in debugger, it shows the @2x image dimensions and the @2x image is shown in the simulator screen. Any idea what causes this or how to fix it?

Upvotes: 0

Views: 385

Answers (2)

1192805
1192805

Reputation: 1048

Found the cause and posting here if it might help others. The @3x img was 3x the size for iPhone 5, rather than iPhone 6+. Eg. its width was 960 instead of 1242 and the 6+ loaded the @2x img instead. After scaling up to 1242, the @3x img loads.

Upvotes: 1

Sanjan Piya
Sanjan Piya

Reputation: 247

In your target general settings, provide a lunch screen storyboard file for the lunch sceen file option.

Upvotes: 0

Related Questions