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 |
Tags
- 애니메이션
- Xcode
- 리펙터링
- uitableview
- Protocol
- uiscrollview
- Clean Code
- combine
- HIG
- 스위프트
- Refactoring
- map
- clean architecture
- Observable
- swift documentation
- collectionview
- UICollectionView
- ribs
- rxswift
- RxCocoa
- ios
- SWIFT
- MVVM
- Human interface guide
- 리팩토링
- 클린 코드
- UITextView
- 리펙토링
- swiftUI
- tableView
Archives
- Today
- Total
목록Collection Types (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift 공식 문서] 4. Collection Types (컬렉션 타입)
Swift 컬렉션은 3가지 Array Set Dictionary Array 갯수와 값을 지정한 초기화 let intArr = [Int](repeating: 0, count: 10) 추가: '+=' 연산자 사용 intArr += [2] 삽입: insert(_:at:) 기존에 at에 있던 값은 오른쪽으로 밀려나는 형태 var intArr = [Int](repeating: 0, count: 3) // [0, 0, 0] intArr.insert(2, at: 1) // [0, 2, 0, 0] 삭제: remove(at:) var intArr = [Int](repeating: 0, count: 3) // [0, 0, 0] intArr.insert(2, at: 1) // [0, 2, 0, 0] let removedVa..
swift 공식 문서
2021. 6. 19. 14:38