Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image in imageView turned into a question mark in a Swift Xcode storyboard

I'm studying Swift by following Stanford's lecture on iOS development. I'm currently adding an imageView to the storyboard. I have added an image to the imageView. However, I'm not sure what I have done, but suddenly the image turned into this:

enter image description here

I'm not asking for specific solution to the problem. I just want to know in general, what are some of the reasons that the image added could turn into a question mark.

like image 839
Thor Avatar asked Dec 14 '22 06:12

Thor


2 Answers

My issue resolved when i just clicked and opened my assets catalog which contained my images

like image 133
Jeeva Avatar answered Dec 16 '22 19:12

Jeeva


My issue is resolved when i provided all image set in "Assets.xcassets". Images for all required size (1x,2x,3x). enter image description here

like image 39
rvx Avatar answered Dec 16 '22 20:12

rvx