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 |
Tags
- Clean Code
- UITextView
- 리팩토링
- Protocol
- 리펙터링
- Human interface guide
- clean architecture
- swiftUI
- uiscrollview
- ios
- MVVM
- UICollectionView
- uitableview
- HIG
- ribs
- rxswift
- swift documentation
- map
- SWIFT
- 애니메이션
- Refactoring
- collectionview
- 스위프트
- Xcode
- Observable
- combine
- 클린 코드
- tableView
- 리펙토링
- RxCocoa
Archives
- Today
- Total
김종권의 iOS 앱 개발 알아가기
[iOS - swift] for - in - where 문법 본문
For문을 사용하되, 특정 조건인 경우를 확인할 때 사용
- where없이 사용
for data in dataSource {
if data.name == "jake" {
print(jake existed)
return
}
}
- where있이 사용: if문이 없어지고 더욱 간결
for data in dataSource where data.name == "jake" {
print(jake existed)
return
}
'iOS 기본 (swift)' 카테고리의 다른 글
[iOS - swift] PresentedViewController vs PresentingViewController (0) | 2020.11.08 |
---|---|
[iOS - swift] Singleton사용 방법 (0) | 2020.11.07 |
[iOS - swift] ViewController의 presentation style / Transition Style (6) | 2020.11.01 |
[iOS - swift] Scale To Fill / Aspect Fit / Aspect Fill (2) | 2020.11.01 |
[iOS - swift] UDID, UUID (0) | 2020.11.01 |
Comments