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
- Session
- darkmode
- FLUTTER
- JPA
- Git
- Realm
- geofencing
- 웹뷰
- 맥
- Apple
- MacOS
- Archive
- IOS
- error
- Xcode
- mac
- Code
- Firebase
- UIButton
- shorebird
- iOS16
- github
- Swift
- 한글
- 이미지
- window
- appstore
- 개발자
- SwiftUI
- rxswift
Archives
- Today
- Total
EEYatHo 앱 깎는 이야기
Xcode ) Xcode13 navigationBar.backgroundImage, setBackgroundImage - EEYatHo iOS 본문
iOS, Swift/Xcode, Xcode Error
Xcode ) Xcode13 navigationBar.backgroundImage, setBackgroundImage - EEYatHo iOS
EEYatHo 2021. 9. 27. 18:34navigationBar.backgroundImage 의 기본값은 nil 이다
그런데
Xcode 12.4 에서는 하얀색 이미지.
Xcode 13.0 에서는 투명색 이미지.
를 보여준다 ㅡㅡ
고치려고 navigationBar.setBackgroundImage를 사용해 보았는데,
Xcode 13.0에서는 사용할 수 없는 함수이다 ㅋㅋㅋ....ㅠ
이제부턴, UINavigationBarAppearance를 사용해서 navigationBar의 설정을 만져야한단다~
아래 코드처럼 말이다.
if #available(iOS 13.0, *) {
let appearance = UINavigationBarAppearance()
appearance.configureWithOpaqueBackground()
appearance.setBackIndicatorImage(whiteImage, transitionMaskImage: whiteImage)
naviBar?.scrollEdgeAppearance = appearance
naviBar?.standardAppearance = appearance
} else {
naviBar?.setBackgroundImage(whiteImage, for: .default)
}
'iOS, Swift > Xcode, Xcode Error' 카테고리의 다른 글
| Xcode ) Unable to boot the Simulator - EEYatHo iOS (0) | 2022.11.11 |
|---|---|
| Xcode ) AirBridge 1.18.0, Xcode 12.5 충돌 - EEYatHo iOS (0) | 2021.11.22 |
| Xcode ) Xcode 13 라이브러리, 프레임워크 에러 - EEYatHo iOS (0) | 2021.09.25 |
| Xcode ) "Created by XXX" 코드 작성자 설정하기 - EEYatHo iOS (0) | 2021.07.05 |
| Xcode ) Xcode에서 한글 디렉토리 사용시 문제점 - EEYatHo iOS (0) | 2021.04.27 |
Comments