加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ios – Xcode 6 Beta 6 CUICatalog:提供的资产名称无效:(null)

发布时间:2020-12-15 01:40:59 所属栏目:百科 来源:网络整理
导读:我收到以下错误: CUICatalog: Invalid asset name supplied: (null),or invalid scale factor: 2.000000Could not load the "(null)" image referenced from a nib in the bundle with identifier "com.example.project" 我收到错误,因为我在界面生成器中为
我收到以下错误:

CUICatalog: Invalid asset name supplied: (null),or invalid scale factor: 2.000000
Could not load the "(null)" image referenced from a nib in the bundle with identifier "com.example.project"

我收到错误,因为我在界面生成器中为Tab栏项目设置了一个“选择的图像”

我已将文件添加到Xcode中:

该设置写入故事板文件中:

<tabBarItem key="tabBarItem" title="..." image="config.png" selectedImage="config_filled.png" id="5Wh-7m-Y4H"/>

我正在使用Xcode 6 Beta 6

我知道约Error: CUICatalog: Invalid asset name supplied: (null),or invalid scale factor : 2.000000,但这并没有帮助我.

什么可能导致资产名称为空?我已经重新进入了图像名称,我也尝试过清洁和重建,但错误仍然存??在(并且没有图像出现)

解决方法

在Xcode 6.1中,属性检查器中的某些属性不起作用,但您可以使用“用户定义的运行时属性”来解决此问题.

我这样解决:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读