Invalid context when creating UIImageView

前端 未结 4 1570
甜味超标
甜味超标 2021-02-05 23:06

I have an error when I tried to create a UIImageView. Look at this code :

UIImage* backgroundPanel = [[UIImage imageNamed:@\"loginPanelBackground.png\"] resizabl         


        
4条回答
  •  旧巷少年郎
    2021-02-05 23:19

    The Simulator is case-insensitive. The device is case-sensitive. The png is named correctly? Maybe it is 'Login' with a capital L.

提交回复
热议问题