Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- Session
- Swift
- Code
- mac
- darkmode
- JPA
- Xcode
- Notification
- MacOS
- Archive
- Git
- iOS16
- Apple
- IOS
- window
- Python
- view
- stack
- 웹뷰
- UIButton
- rxswift
- Firebase
- FLUTTER
- error
- appstore
- github
- SwiftUI
- 한글
- 개발자
- Realm
Archives
- Today
- Total
목록reloadata (1)
EEYatHo 앱 깎는 이야기
Swift ) reloadData Completion 콜렉션뷰 리로드 끝날 때 감지
기본형 collectionView.reloadData() collectionView.performBatchUpdates { // 리로드 끝나고 실행되길 원하는 소스 } 리로드가 끝나면, 그 콘텐츠 크기만큼 AutoLayout으로 높이 설정하기 collectionView.reloadData() collectionView.performBatchUpdates { [weak self] in self?.collectionView.snp.updateConstraints { $0.height.equalTo(self?.collectionView.contentSize.height) } }
iOS, Swift
2021. 3. 11. 09:44