250x250
반응형
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
- IOS
- protocol
- it
- flutter
- Extentsion
- tip
- github
- OSLog
- Leetcode
- pubspec.yaml
- xcode
- Equatable
- swiftlint
- dart
- keyWindow
- COMMIT
- reetcode
- SwiftGen
- designPattern
- listview
- enumerations
- UIAccessibility
- Widget
- GIT
- algorithm
- toyproject
- ToDoRim
- basic
- Swift
- pubspec
Archives
- Today
- Total
목록StatusBar (1)
수니의 개발새발
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/DiaSo/btsCNZRIm38/zulUrTYB3whqkveUkb8qnK/img.png)
iOS13에서 status bar 사이즈를 구할 때 사용하던 statusBarFrame이 deprecated 되었습니다. 'statusBarFrame' was deprecated in iOS 13.0: Use the statusBarManager property of the window scene instead. 📌 이번 글은 iOS 13에서 statusBarFrame 경고를 해결하여 상태바 높이를 구하는 소스입니다. static let STATUS_HEIGHT: CGFloat = UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.windowScene?.statusBarManager?.statusBarFrame.height ?? 0 // 상태바 높이
iOS - Swift
2024. 1. 1. 20:23