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
- 리팩토링
- 애니메이션
- Protocol
- tableView
- map
- UITextView
- Xcode
- Clean Code
- MVVM
- rxswift
- combine
- ribs
- HIG
- 리펙터링
- Human interface guide
- uiscrollview
- UICollectionView
- Refactoring
- swiftUI
- Observable
- 리펙토링
- swift documentation
- uitableview
- RxCocoa
- clean architecture
- 스위프트
- 클린 코드
- ios
- collectionview
- SWIFT
Archives
- Today
- Total
목록becomeFirstResponder() (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] customView, 커스텀뷰에서 becomeFirstResponder(), resignFirstResponder() 처리 방법 (UITextField, UITextView, 키보드)
커스텀 뷰에서 뷰를 터치해도 키보드가 올라게 하는 방법 커스텀 뷰 터치 이벤트 바인딩에서 UITextField에 접근하여 becomeFirstResponder()를 호출해줄 수 있지만 커스텀 뷰를 사용할땐 UI요소가 private이 되어야 응집도가 높아지므로 다른 방법 사용 CustomView에서 becomeFirstResponder(), resignFirstResponder()를 재정의하여 사용 // MyCustomView.swift @discardableResult override func becomeFirstResponder() -> Bool { super.becomeFirstResponder() return self.textField.becomeFirstResponder() } @discardab..
iOS 응용 (swift)
2022. 1. 26. 03:12