일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Stomp user connection event
- Firebase authentication apple login
- supabase edge function deploy error
- 주 4일 근무제 경험담
- supabase edge function deploy error supabaseurl is required
- Firebase authentication android apple login setting
- supabase storage public url not working
- Supabase edge function insert data
- 소개팅앱 만들기
- Android apple login identifier
- 소개팅앱 만들기 stomp
- invite user for supabase project
- stable-diffusion-webui local 접속
- no such module '__ObjC'
- supabase storage feature not enabled for this tenant
- Spring boot swagger blank screen
- 주 4일 근무제
- 로컬 서버 접속
- Android apple login
- 소개팅앱 만들기 flutter
- Supabase edge function
- Spring LocalDateTime response array
- DT_TOOLCHAIN_DIR cannot be used
- Spring google SMTP settings
- stable-diffusion-webui local 네트워크에서 접속
- Firebase authentication android apple login
- Stomp socket connection event
- 주 4일 근무제 log
- Firebase authentication apple login 최신
- Android apple login 인증서 설정
- Today
- Total
꿀맛코딩
iOS 13 NSInternalInconsistencyException statusBar 본문
iOS 13 업데이트 이후 Error 가 뿜어져 나온다 ...
또하나 찾은 Error 내용은 아래와 같다.
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead.'
이전 처럼 UIApplication 에서 status bar 를 가져 올수 없다.
이전 코드는 아래와 같다.
UIApplication.shared.value(forKey: "statusBar") as? UIView
그럼 이제 어떻게 가져 올수 있을까 ?
해결 코드는 아래와 같다.
let statusBarView: UIView?
if #available(iOS 13.0, *) {
let tag = 38482458385
if let statusBar = UIApplication.shared.keyWindow?.viewWithTag(tag) {
statusBarView = statusBar
} else {
let statusBar = UIView(frame: UIApplication.shared.statusBarFrame)
statusBar.tag = tag
UIApplication.shared.keyWindow?.addSubview(statusBar)
statusBarView = statusBar
}
} else {
statusBarView = UIApplication.shared.value(forKey: "statusBar") as? UIView
}
참고 : https://stackoverflow.com/questions/57083746/how-can-i-change-status-bar-alpha-in-ios-13