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 | 31 |
Tags
- Git
- stack
- Realm
- FLUTTER
- view
- MacOS
- IOS
- Notification
- darkmode
- Firebase
- Xcode
- JPA
- Python
- rxswift
- Apple
- Code
- 한글
- github
- 개발자
- error
- Session
- Archive
- UIButton
- mac
- Swift
- appstore
- SwiftUI
- iOS16
- 웹뷰
- window
Archives
- Today
- Total
목록sourceView (1)
EEYatHo 앱 깎는 이야기
Swift ) popoverPresentationController - EEYatHo iOS
UIActivityViewController로 action sheet를 띄우거나, share기능을 만들거나 할 때, iPad 지원을 위해 popoverPresentationController를 설정하곤 한다. 1. popoverPresentation을 띄울 뷰를 설정한다. vc.popoverPresentationController?.sourceView = view 2. 설정해준 뷰에서, popoverPresentation를 띄울 좌표를 설정 할 수 있다. vc.popoverPresentationController?.sourceRect = CGRect(x: view.bounds.midX, y: view.bounds.midY, width: 0, height: 0) 3. popoverPresentation는 ..
iOS, Swift
2021. 10. 4. 15:47