ios - Xcode build 时 控制台报错
PHP中文网
PHP中文网 2017-04-17 17:42:26
0
3
316

Xcode build 时 控制台报错
2016-03-16 18:26:23.807 XiangMu[1173:68979] Failed to set (cornerRadius) user defined inspected property on (UIView): [<UIView 0x7fdfc3c37a00> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key cornerRadius.

这种报错,可以根据 [<UIView 0x7fdfc3c37a00> setValue:forUndefinedKey:] 这个信息,找到出错的那个UIView吗

PHP中文网
PHP中文网

认证高级PHP讲师

membalas semua(3)
伊谢尔伦

可以试试在xib (xml文本)里面按字串找那个属性

左手右手慢动作

把Key Path里面的cornerRadius改为layer.cornerRadius

Ty80

利用全局断点可以直接定位到出错的地方

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan
Tentang kita Penafian Sitemap
Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!