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 | 29 | 30 | 31 |
Tags
- basic
- toyproject
- GIT
- flutter
- tip
- Equatable
- Widget
- algorithm
- UIAccessibility
- Leetcode
- xcode
- keyWindow
- protocol
- OSLog
- reetcode
- COMMIT
- it
- github
- listview
- Extentsion
- IOS
- pubspec
- swiftlint
- ToDoRim
- designPattern
- pubspec.yaml
- dart
- Swift
- enumerations
- SwiftGen
Archives
- Today
- Total
목록StatusBar (1)
개발자 수니
[iOS/Swift] iOS13에서 statusBarFrame 경고 해결
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