Could not load the “” image referenced from a nib

前端 未结 21 2407
广开言路
广开言路 2020-12-23 19:21

I have no images called \"\" (nothing). I\'ve gone through the .xib file of the screen where this pops up and can\'t find anything that would cause this. Anybody who have ha

21条回答
  •  盖世英雄少女心
    2020-12-23 20:16

    I came looking for the answer. I searched my entire project and storyboard source code for "" and nowhere could I find it. The clue that the view that is displayed when the error appears is the one you need.

    • Open your xib or storyboard selecting the relevant viewController.

    • On the left click all grey arrows to expand the selection in your view enter image description here

    • look for the UIImageView icon (its the one with the palm tree)

    • select it and open the "Attributes inspector" on the right hand side. enter image description here

    • In the ImageView section at the top in either or both Image and
      Highlighted you will see greyed out "unknown image".

    • Use the drop down menu to change this from "unknown image" and build run

    • voila

提交回复
热议问题