| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- tableView
- 클린 코드
- UICollectionView
- RxCocoa
- Clean Code
- Observable
- Protocol
- claude code
- Refactoring
- HIG
- Xcode
- map
- rxswift
- swiftUI
- UITextView
- Human interface guide
- 스위프트
- 리팩토링
- collectionview
- 리펙토링
- 클로드코드
- ios
- uiscrollview
- MVVM
- swift documentation
- clean architecture
- uitableview
- SWIFT
- 애니메이션
- combine
- Today
- Total
목록Length (2)
김종권의 iOS 앱 개발 알아가기
UITextView의 Cursor 개념 Cursor는 사용자 편의를 위해서 현재 수정되거나 작성될 곳의 위치를 나타내는 역할 애플에서는 이 Cursor도 코드로 이동시키거나 Cursor의 위치를 파악할 수 있도록 NSRange 형태로 제공 NSRange 개념은 이전 포스팅 글 참고 NSRange 요약 개념 NSRange는 _NSRange의 Typealias로 되어 있고 범위의 시작 위치를 location, 길이를 length 프로퍼티로 표현 public struct _NSRange : @unchecked Sendable { public init() public init(location: Int, length: Int) public var location: Int public var length: Int ..
NSRange 개념 연속된 것 중 한 부분을 나타내는 개념 NSRange는 _NSRange의 별칭 location과 length 2가지의 stored property만 있으면 연속된 것 중 한 부분을 나타낼 수 있음 location: 연속된 길이 중 한 지점 length: 길이 public struct _NSRange : @unchecked Sendable { public init() public init(location: Int, length: Int) public var location: Int public var length: Int } extension으로 여러가지 프로퍼티와 메서드도 제공 주로 범위를 비교할 때 사용하는 연산자 @available(macOS 10.10, iOS 8.0, watch..