search

Home  >  Q&A  >  body text

ios - Xcode build 时 控制台报错

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中文网2811 days ago327

reply all(3)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:44:26

    You can try to find that attribute by string in xib (xml text)

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 17:44:26

    Change cornerRadius in Key Path to layer.cornerRadius

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 17:44:26

    Use global breakpoints to locate the error directly

    reply
    0
  • Cancelreply