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
- 스위프트
- swiftUI
- Clean Code
- uiscrollview
- ribs
- UITextView
- 리팩토링
- combine
- Protocol
- UICollectionView
- 리펙터링
- rxswift
- MVVM
- swift documentation
- clean architecture
- SWIFT
- ios
- tableView
- uitableview
- HIG
- 클린 코드
- Human interface guide
- 애니메이션
- 리펙토링
- collectionview
- map
- Observable
- Refactoring
- RxCocoa
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