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 |
Tags
- 애니메이션
- combine
- 스위프트
- UITextView
- Xcode
- 리팩토링
- SWIFT
- Protocol
- uiscrollview
- 클린 코드
- clean architecture
- MVVM
- uitableview
- 리펙터링
- ribs
- Human interface guide
- rxswift
- Observable
- collectionview
- ios
- swift documentation
- Refactoring
- UICollectionView
- map
- 리펙토링
- HIG
- Clean Code
- swiftUI
- RxCocoa
- tableView
Archives
- Today
- Total
목록touch 영역 (1)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bhhm51/btreBkKNhwW/8FswNESvy6C4rN2tkqFpH1/img.gif)
터치 영역 늘리는 아이디어 UIView에서 사용하고 있는 point(inside:with:)메소드를 override하여 touch영역 확대 point는 터치가 일어난 곳의 좌표이고, event는 gesture의 종류이며, true를 반환하면 point가 receiver의 bounds 내부에 속해있다고 판별 touch 영역 확대는 bounds값을 계산하는 insetBy(dx:dy:) 이용 dx, dy가 음수이면 bounds의 크기를 증가, dx, dy가 양수이면 bounds의 크기 감소 insetBy(dx:dy:) 자세하게 알아보기: viewDidAppear에서 bounds.insetBy(dx:dy:)로 구한 값으로 bounds재설정 테스트 override func viewDidAppear(_ animat..
iOS 응용 (swift)
2021. 9. 9. 23:07