일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Python
- PyQt
- ios
- Chrats
- kotlin
- androidstudio
- 그래프
- alamofire
- UIKit
- 개발
- Swift
- graph
- cocoapods
- Storyboard
- charts
- Apple
- 라이브러리
- Android
- 개발자
- UITableView
- ui
- 어플리케이션
- Xcode
- TableView
- button
- UIButton
- PyQt5
- library
- modal
- Chart
Archives
- Today
- Total
반응형
목록2024/04/23 (1)
Jiwift
[iOS/Swift] safeAreaInsets 상단, 하단 영역 구하기
safearea의 상단, 하단 insets을 구하는 코드 let scene = UIApplication.shared.connectedScenes.first as? UIWindowScene let topPadding = scene?.windows.first?.safeAreaInsets.top ?? .zero let bottomPadding = scene?.windows.first?.safeAreaInsets.bottom ?? .zero UIApplication을 통해서 top과 bottom의 safeAreaInsets을 구할 수 있다. connectedScenes는 iOS 13부터 사용할 수 있다. How can I get the safeAreaInsets i… | Apple Developer Forums..
iOS Dev/iOS
2024. 4. 23. 20:37
반응형