Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 8 doesn't show images in storyboard

Tags:

ios

xcode8

After updating xcode all images in the storyboard appeared as question marks (as it doesn't find them). I tried to remove/add them, cleared derived data but still all image views show quesiton marks. If anyone has any idea what might be the problem ?

like image 809
Stefan Nestorov Avatar asked Sep 19 '16 10:09

Stefan Nestorov


1 Answers

I had the same problem and I found out that it's because I don't have the image in the size that corresponds to the "View as" device selected in storyboard (bottom left).

If you've selected a device that needs the @2x image (example: iPhone 6s) and you only have the @3x image (as I did) you will see the question mark. If you add the size for the image that corresponds to the device size that you are using for storyboard, the image will appear in your imageView.

Basically, you want to have the image in all 3 sizes: @1x, @2x and @3x.

like image 90
Mr Stanev Avatar answered Nov 15 '22 07:11

Mr Stanev