안녕하세요

프로그램 과정에서 막혔던 문제들에 대한 해결책 정리


페이지 목록

2022년 12월 5일 월요일

Invalid update: invalid number of rows in section 0

tableview에 지울경우 Object를 remove하지 않으면 발생한다.

출처: https://stackoverflow.com/questions/21870680/invalid-update-invalid-number-of-rows-in-section-0

2022년 12월 3일 토요일

unable to dequeue a cell with identifier reuseIdentifier

 tableView를 오버라이드 한 파일 만들때 주석으로 만들어주는 함수에 보면 

let cell = tableView.dequeuereusableCell(withIdentifier : "~~~~"가 있는데


~~~~ 자리에 내가 설정한 cell의 identifier를 넣어주지 않았기 때문에 발생


https://stackoverflow.com/questions/29282447/unable-to-dequeue-a-cell-with-identifier-cell-must-register-a-nib-or-a-class-f


출처: https://euna501.tistory.com/entry/unable-to-dequeue-a-cell-with-identifier-reuseIdentifier

2022년 11월 13일 일요일

맥북과 아이폰 전화 메세지 연결

 맥북과 아이폰을 같은 와이파이로 연결

 맥북과 아이폰 같은 계정 연결


1. 아이폰 과 맥북 전화 연동

아이폰: 설정->전화->다른기기에서의 통화 활성화

맥북: facetime -> 설정 -> iPhone 통화 체크


2. 아이폰과 맥북 메세지 연동

아이폰: 설정 ->메세지 -> 문자 메세지 전달 -> 맥북기기명 On 으로 활성화

맥북: 메세지 -> 설정 -> iMessage -> 동일 계정연동 확인

2019년 12월 11일 수요일

[swiftui] Delete, Move, Insert List

드디어 찾았다.

swiftui로 delete, move, insert 하는 방법..

찾았으니 이제 슬슬 따라해 봐야겠다.

출처: https://www.youtube.com/watch?v=chFW77sM-Dg



역시.. 요즘 대세는 youtube인가..

Googling보다 Youtube 에서 결과를 찾았고, 물론, 동영상으로 나오니, 따라하기가 더 쉬워 보인다.

실제 쉬운지는 따라해봐야겠지만..

2019년 12월 9일 월요일

[swiftui] navigationButton -> navigationLink

navigationButton은 navigationLink로 변경되었다고 한다.
그렇다고 한다.

2019년 12월 5일 목요일

[swiftui] simple table view

간단한 테이블 뷰를 만드는 방법을 친절하게 설명한 사이트입니다.

영문인 것이 함정

https://www.appcoda.com/swiftui-first-look/