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
- UITextView
- Refactoring
- 클린 코드
- HIG
- Xcode
- tableView
- uiscrollview
- SWIFT
- MVVM
- ios
- swift documentation
- 리팩토링
- ribs
- Human interface guide
- map
- Observable
- Protocol
- collectionview
- 리펙터링
- combine
- 스위프트
- 애니메이션
- clean architecture
- swiftUI
- rxswift
- Clean Code
- UICollectionView
- uitableview
- 리펙토링
- RxCocoa
Archives
- Today
- Total
목록cancelsTouchesInView (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] 빈 화면 탭 시 키보드 내리는 방법 (화면 터치 시 키보드 숨김처리)
원리 ViewController에 tap gesture를 등록 한 후, 해당 gesture에 대한 이벤트는 view.endEditing(true)이벤트를 주면 해결 Tap의 cancelsTouchesInView = true 속성: 기존에 일어나고 있는 touch이벤트들을 취소시키는 속성 이벤트가 잘 전달되게 하려면 cancelsTouchesInView = false로 지정 필요 구현 extension UIViewController { func hideKeyboardWhenTappedBackground() { let tapEvent = UITapGestureRecognizer(target: self, action: #selector(dismissKeyboard)) tapEvent.cancelsTouches..
iOS 응용 (swift)
2021. 3. 22. 23:34