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
- 리펙토링
- swift documentation
- UICollectionView
- 스위프트
- clean architecture
- SWIFT
- Xcode
- Observable
- UITextView
- HIG
- 클린 코드
- collectionview
- Refactoring
- ribs
- tableView
- 리펙터링
- map
- Clean Code
- rxswift
- MVVM
- uiscrollview
- combine
- 애니메이션
- ios
- 리팩토링
- uitableview
- Human interface guide
- Protocol
- swiftUI
- RxCocoa
Archives
- Today
- Total
목록deleteItem (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] collectionView의 performBatchUpdates(_:completion:)
CollectionView의 연산 3가지 insert, move, delete 3가지 연산의 dicussion에 모두 performBatchUpdates를 사용하여 각 연산의 변경을 동시에 animate를 줄 수 있는 방법 performBatchUpdates(_:completion:) 여러개의 변경 후 completion 블럭을 사용할 수 있기 때문에 사용 코드의 순서에 상관 없이 insert 연산전에 delete 연산이 수행됨을 주의 > 삭제 후 index값 기준으로 index가 처리되므로 주의 performBatchUpdates(_:completion:) 사용 collectionView 준비 class ViewController: UIViewController { // Views lazy var co..
iOS 응용 (swift)
2021. 8. 29. 11:15