错误:CUICatalog:提供的资产名称无效:( null)或无效比例因子:2.000000 [英] Error: CUICatalog: Invalid asset name supplied: (null), or invalid scale factor : 2.000000
问题描述
TableViewApplication[1458:70b] CUICatalog: Invalid asset name supplied: (null), or invalid scale factor: 2.000000
使用TableViewController时收到此警告。如何纠正这个错误以及哪个块受到影响?
Getting this warning while working with TableViewController. How to rectify this error and which block is affected?
推荐答案
当有人试图输入 nil
in [UIImage imageNamed:]
This one appears when someone is trying to put nil
in [UIImage imageNamed:]
为<$ c添加符号断点$ c> [UIImage imageNamed:]
在模拟器上添加 $ arg3 == nil
条件, $ r0 == nil
32位iPhone上的条件,或64位iPhone上的 $ x2 == nil
。
Add $arg3 == nil
condition on Simulator, $r0 == nil
condition on 32-bit iPhone, or $x2 == nil
on 64-bit iPhone.
运行您的应用程序并查看调试器将停止的位置。
Run your application and see where debugger will stop.
PS请记住,如果图像名称为空字符串,也会发生这种情况。您可以通过在条件中添加 [(NSString *)$ x2 length] == 0
来检查这一点。
P.S. Keep in mind this also happens if image name is empty string. You can check this by adding [(NSString*)$x2 length] == 0
to the condition.
这篇关于错误:CUICatalog:提供的资产名称无效:( null)或无效比例因子:2.000000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!