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
- MVVM
- Xcode
- Protocol
- uiscrollview
- tableView
- RxCocoa
- 스위프트
- Refactoring
- 리펙터링
- 리팩토링
- uitableview
- Human interface guide
- UITextView
- SWIFT
- clean architecture
- collectionview
- map
- rxswift
- UICollectionView
- swift documentation
- swiftUI
- 리펙토링
- 클린 코드
- combine
- Observable
- 애니메이션
- ios
- Clean Code
- ribs
- HIG
Archives
- Today
- Total
목록enumerated() (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] enumerated() 함수
개념 array값에 enumerated()함수를 사용하면, (index, value) 튜플형식으로 구현된 리스트형이 리턴 예제) for문과 사용 let arr = ["one", "two", "three"] print(arr.enumerated()) // EnumeratedSequence(_base: ["one", "two", "three"]) for (index, number) in arr.enumerated() { print("\(index), \(number)") } /* 0, one 1, two 2, three */
iOS 기본 (swift)
2021. 2. 9. 22:56