일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- swiftUI
- 리펙터링
- tableView
- uitableview
- Xcode
- 리펙토링
- Protocol
- SWIFT
- ribs
- HIG
- collectionview
- 스위프트
- map
- combine
- MVVM
- 리팩토링
- Clean Code
- UITextView
- 애니메이션
- rxswift
- Refactoring
- uiscrollview
- clean architecture
- ios
- UICollectionView
- RxCocoa
- 클린 코드
- Observable
- swift documentation
- Human interface guide
- Today
- Total
목록UITextView (20)
김종권의 iOS 앱 개발 알아가기

UITextView의 padding UITextView에는 padding이라는 개념과 inset 개념이 존재 inset은 3가지 (contentInset, textContainerInset, scrollIndicatorInsets) contentInset은 textContainer와 scrollView의 간격 textContainerInset은 텍스트와 container사이의 간격 scrollIndicatorInsets은 스크롤 indicator의 간격 inset 자세한 개념은 이전 포스팅 글 참고 inset과 별도로 padding이라는 개념이 있는데 이 값을 시스템에서 디폴트 값을 5로 설정 확인) textView1을 만들고 이 값의 lineFragmentPadding값을 출력 private let t..

1. UITextField, UITextView에서 알면 좋은 개념 - deleteBackward() 2. UITextField, UITextView에서 알면 좋은 개념 - binding (rx.text, editingChanged, allEditingEvents, shouldChangeCharactersIn, allEditingEvents) 3. UITextField, UITextView에서 알면 좋은 개념 - NSRange, UITextRange (#utf16) 4. UITextField, UITextView에서 알면 좋은 개념 - prefix, suffix, insert prefix, suffix, substring UITextView, UITextField와 같이 사용할 때, 이전 포스팅 글 NS..

1. UITextField, UITextView에서 알면 좋은 개념 - deleteBackward() 2. UITextField, UITextView에서 알면 좋은 개념 - binding (rx.text, editingChanged, allEditingEvents, shouldChangeCharactersIn, allEditingEvents) 3. UITextField, UITextView에서 알면 좋은 개념 - NSRange, UITextRange (#utf16) 4. UITextField, UITextView에서 알면 좋은 개념 - prefix, suffix, insert NSRange와 UITextRange NSRange 개념 연속된 것 중 한 부분을 나타내는 개념 (위치를 나타내는 location..

1. UITextField, UITextView에서 알면 좋은 개념 - deleteBackward() 2. UITextField, UITextView에서 알면 좋은 개념 - binding (rx.text, editingChanged, allEditingEvents, shouldChangeCharactersIn, allEditingEvents) 3. UITextField, UITextView에서 알면 좋은 개념 - NSRange, UITextRange (#utf16) 4. UITextField, UITextView에서 알면 좋은 개념 - prefix, suffix, insert text 바인딩 text가 변할 때 실시간으로 이벤트를 받는 것 가장 알려진 메서드는 델리게이트 메서드 중 하나인 shouldCh..

1. UITextField, UITextView에서 알면 좋은 개념 - deleteBackward() 2. UITextField, UITextView에서 알면 좋은 개념 - binding (rx.text, editingChnaged, allEditingEvents, shouldChangeCharactersIn, allEditingEvents) 3. UITextField, UITextView에서 알면 좋은 개념 - NSRange, UITextRange (#utf16) 4. UITextField, UITextView에서 알면 좋은 개념 - prefix, suffix, insert, deleteBackward() 개념 현재 화면 상의 cursor 위치 앞쪽의 문자를 삭제하는 UITextField혹은 UITex..

UITextView 입력 중 위로 스크롤 되는 현상 UIStackView를 사용하여 리스트 형태의 뷰를 보여줄 때 중간에 UITextView가 있다면 버그가 발생 뷰형태: UIScrollView안에 UIStackView을 넣고, 이 스택뷰에 UITextView 넣어서 리스트 형태의 뷰를 만든 형태 (UITextView의 isScrollEnabled는 false로 설정) ex) 뷰 형태 import UIKit class ViewController: UIViewController { private let scrollView = UIScrollView() private let stackView = UIScrollView() private let textView = UITextView() private let ..

* 업데이트 된 최신글: https://ios-development.tistory.com/1565 UITextView 입력 중 위로 스크롤 되는 현상 UIStackView를 사용하여 리스트 형태의 뷰를 보여줄 때 중간에 UITextView가 있다면 버그가 발생 뷰형태: UIScrollView안에 UIStackView을 넣고, 이 스택뷰에 UITextView 넣어서 리스트 형태의 뷰를 만든 형태 ex) 뷰 형태 import UIKit class ViewController: UIViewController { private let scrollView = { let v = UIScrollView() v.translatesAutoresizingMaskIntoConstraints = false return v }(..

UITextInputDelegate 개념 텍스트 입력에 대한 델리게이트 UITextView와 UITextField가 가지고 있는 delegate iOS 3.2+에서 제공 코드로는 inputDelegate로 접근 selectionWillChange: textFIeld나 textView 글자를 눌러서 선택했을때 바로 직전 호출 selectionDidChange: textFIeld나 textView 글자를 눌러서 선택하거나 드래그했을때 selected range값이 업데이트된 후 호출 주의) text 자체가 change되는 이벤트들은 문서와는 다르게 실제로 코딩해보면 호출 x textWillChnage: text가 변경되기 직전 호출 textDidChnage: text가 변경되고난 후 호출 textField...