본문 바로가기 메뉴 바로가기

y.log

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

y.log

검색하기 폼
  • 분류 전체보기 (25)
    • Swift (14)
      • 문법 (2)
      • Swift (6)
      • Debugging Notes (6)
    • Kotlin (3)
    • Algorithm (1)
      • Debugging Notes (1)
    • 학부 수업 (2)
      • 풀스택서비스네트워킹 (2)
    • Projects (0)
    • y.log (5)
  • 방명록

에러 (1)
[오류] Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UICollectionViewCell 0x7fa81903e210> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key dateLabel.'

CollectionView 셀을 이용한 앱을 만들어보던 중 생긴 오류 Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key dateLabel.' 분명 셀에 대한 클래스도 잘 지정하고, Identifier도 잘 지정했고, 셀에 대한 swift 파일도 잘 작성했는데 발생한 오류라 당황스러웠다. 원인은 의외로 간단했다. 셀의 'Inherit Module From Target' 체크란을 체크해주니 해결되었다.

Swift/Debugging Notes 2022. 3. 1. 19:11
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • http/1.1
  • 부스트캠프
  • CRAWL
  • 회고
  • Realm
  • Info.plist
  • CollectionView
  • BeautifulSoup
  • 2024년
  • UITest
  • 네트워킹
  • 유즈케이스
  • 클린 아키텍처
  • 웹모바일
  • collectionViewCell
  • http/1
  • KeyChain
  • snapkit
  • XCTest
  • dismiss
  • 스위프트
  • IntrinsicContentSize
  • Clean Architecture
  • swift
  • IOS
  • equaltosuperview
  • 오토레이아웃
  • 2023년
  • Kotlin
  • Autolayout
more
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바