Tony Stark Tony Stark - 1 year ago 141
iOS Question

swift xcode storyboard, image in imageView turned into a question mark

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. Thanks in advance for any help!

Answer Source

Selecting the UIImageView. Then going to Attributes Inspector, and setting the "Image" property to a file that XCode doesn't find, will cause the coresponding UIImageView element in the story board to appear with question mark.

enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download