Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
179 views
in Technique[技术] by (71.8m points)

iphone - "this class is not key value coding-compliant for the key...."

for the past few days i keep on getting this error everytime i run a build in xCode:

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x1dd4a1c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key playBtn.'

at the begining it was in something i have made. than i deleted it and it was still there - in an object (like this playBtn here) that did not exist anymore.

and now - in every single app i am trying to debug. if on my iphone or in the simulator - the same.

i just can't run anything now !!

*clean doesn't work ! *

what do i do? i can't work like this..

notice: solved. it was a problem with the appdelegate.m thanks for who helped.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Check your IBOutlet connections in your XIB

You said playBtn does not exists, so check if connection still exist for the same, They will show ! mark in place of dot in connections.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...