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

KimBaechu

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

KimBaechu

검색하기 폼
  • 분류 전체보기 (151)
    • iOS (88)
    • Swift (32)
    • Git (6)
    • etc. (6)
    • Algorithm (19)
  • 방명록

DiffableDataSource (1)
[iOS] DiffableDatasource 와 reconfigureItems

iOS15에서부터 reconfigureItems를 사용할 수 있습니다. “To update the contents of existing (including prefetched) cells without replacing them with new cells…” cell을 update하기 위해서 reloadItems(\\_:)대신 사용합니다. 새로운 셀로 바꾸는 것이 아니기 때문에 퍼포먼스가 더 좋습니다. “Because this method reconfigures existing cells, the collection view or table view doesn’t call prepareForReuse for each cell dequeued.” 하지만 prepareForReuse가 불리지 않는 다는 점을..

iOS 2023. 3. 30. 23:27
이전 1 다음
이전 다음
공지사항

Blog is powered by Tistory / Designed by Tistory

티스토리툴바