| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- Protocol
- Xcode
- Human interface guide
- rxswift
- HIG
- MVVM
- 클린 코드
- map
- clean architecture
- collectionview
- 애니메이션
- 리팩토링
- 리펙토링
- ios
- Clean Code
- combine
- UICollectionView
- scrollview
- ribs
- RxCocoa
- uitableview
- SWIFT
- swiftUI
- tableView
- 스위프트
- swift documentation
- Observable
- Refactoring
- UITextView
- uiscrollview
- Today
- Total
목록range (3)
김종권의 iOS 앱 개발 알아가기
알아야 하는 기본 개념 Range NSRange 문자열 처리 메소드 .trimmingCharacters(In: .whitespacesAndNewlines), .replaceingCharacters(in:with:) Range half-open의 범위를 나타내고 있는 구조체 Range는 lowerBound, upperBound프로퍼티가 존재 "1..
stride 키워드 주의 stride(from:to:by:) to를 포함하지 않음 stride(from:through:by) through를 포함 for i in stride(from: 0, to: 5, by: 1) { print(i) // 0, 1, 2, 3, 4 } for i in stride(from: 0, through: 5, by: 1) { print(i) // 0, 1, 2, 3, 4, 5 } // cf) Closed range for i in 0...5 { print(i) // 0, 1, 2, 3, 4, 5 } Range 제네릭이며 '반개방'상태(A..
textField: 수정 전의 textField객체 range: 수정 될 범위 정보 range.location: 현재 커서 위치 range.length: 삭제된 문자 갯수 EX) "1234"에서 "12"로 변경 -> range: {2, 2} "현재 커서 위치는 2, 문자열에서 수정된 길이는 2개" "123456"에서 "123"으로 변경 -> range: {3,3} "123"에서 "1234"로 변경 -> range: {3, 0} func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { // 현재: "123" // 입력: "1234" let ..