[Error] this class is not key value coding-compliant for the key

HYES00·2023년 2월 26일
0

Error

목록 보기
1/1

작년에 듣다가만 인강을 처음부터 다시 듣는 와중에 에러를 만나게 되었다. 한 번 해결해보도록 하겠다👏🏻👏🏻

만난 에러는

"[<Diary.WriteDiaryViewController 0x14b913600> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key contentTextField."

Navigation Controller의 rootViewController에서 Bar Button Item을 Add로 해놓고 Action Segue의 Show로 연결해 놓고 실행했더니 버튼을 누르면 앱이 터진다😟

흠..

원인을 찾아보니 contentTextField 중 연결이 끊긴게 있나보다

그럼 Storyboard로 연결을 보는 방법에 대해서 알아보겠다.

이렇게 원이 채워져 있으면 연결이 된 것이다.


찾았다. 저기 TextField에 warning이 있었다.


다시 연결해도 똑같길래 자세히 보니 연결을 두개나 해서 하나를 지워줬다.

굳 아주 잘 실행된다😃

참고 자료

profile
이제라도 기록하자🙌🏻

0개의 댓글