ios - Xcode build 时 控制台报错

 打个的故事 发布于 2022-10-30 22:24

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

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

3 个回答
  • 利用全局断点可以直接定位到出错的地方

    2022-10-31 21:45 回答
  • 把Key Path里面的cornerRadius改为layer.cornerRadius

    2022-10-31 21:45 回答
  • 可以试试在xib (xml文本)里面按字串找那个属性

    2022-10-31 21:45 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有