美文网首页iOS学习笔记
NSUnknownKeyException

NSUnknownKeyException

作者: Karenkey | 来源:发表于2016-04-03 15:34 被阅读0次

uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]:this class is not key value coding-compliant for the XXX.

the problem is in the xib or storyboard file. You have an item (probably a UIButton) linked to xxx, but you renamed that item to playbtn in code, without reassigning the outlet in the xib. Check the play button in your xib/storyboard and remove its non existent outlet.

storyboard设置问题,检查里面的item是否重复设置或者没有在view controller里面设置该item的outlet

相关文章

网友评论

    本文标题:NSUnknownKeyException

    本文链接:https://www.haomeiwen.com/subject/cndulttx.html