반응형
tableView를 구성하면서 쉽게 접하는 오류들을 정리하겠습니다.
1. unable to dequeue a cell with identifier MyCell 과 같은 오류가 발생하는 경우
- 식별자를 지정해주지 않아서 생기는 오류였습니다. 이는 셀의 식별자를 MyCell과 같이 설정해주면 해결할 수 있었씁니다.
해결 참조 링크:
https://www.hackingwithswift.com/example-code/uikit/fixing-unable-to-dequeue-a-cell-with-identifier
Fixing "Unable to dequeue a cell with identifier" - free Swift 5.4 example code and tips
Was this page useful? Let us know! 1 2 3 4 5
www.hackingwithswift.com
2. ‘-[LottoDrawExample.ViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x7fe601d20650’과 같은 오류가 발생하는 경우
- 컨트롤 + 드래그를 통해 테이블 뷰를 해당 뷰 컨트롤러와 delegate, dataSource를 연결해주지 않아서 발생한 오류였습니다.
해결 참조 링크:
반응형
'iOS 개발' 카테고리의 다른 글
iOS개발 - 화면 간 이미지 전달하는 방법 (0) | 2022.07.17 |
---|---|
iOS개발 - HTTP Method란? (0) | 2022.07.16 |
iOS개발 - Alomfire 사용법 (0) | 2022.07.16 |
iOS개발 - Alamofire를 이용한 서버 통신 (0) | 2022.07.07 |
Xcode-project Flooming: 이미지 자르기 기능(crop) 추가하기 (0) | 2022.06.30 |