Could not load the “” image referenced from a nib

前端 未结 21 2353
广开言路
广开言路 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:19

    I had the same issue and in my case there was an UIButton with an invalid image reference in the storyboard file. The reference wasn't empty so it was not trivial to spot by just searching for "" in the storyboard file. However, Xcode did show "Unknown image" for the button in the Background field instead of "Default Background Image". In the storyboard file it appeared as

    
    

    so perhaps grepping for backgroundImage and looking for non-familiar references will help find the cause.

提交回复
热议问题