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
- swift documentation
- Observable
- SWIFT
- 리펙토링
- uiscrollview
- map
- Protocol
- HIG
- ribs
- 클린 코드
- 애니메이션
- clean architecture
- RxCocoa
- UICollectionView
- uitableview
- combine
- rxswift
- scrollview
- swiftUI
- MVVM
- ios
- Human interface guide
- Xcode
- collectionview
- Clean Code
- UITextView
- 스위프트
- 리팩토링
- tableView
- Refactoring
Archives
- Today
- Total
김종권의 iOS 앱 개발 알아가기
[iOS - swift] 17. status bar 글씨 색깔 지정하기 본문
preferredStatusBarStyle변수를 override하여 사용 (UIViewController에 상속되어 있음)
예) 검은색 배경에 흰색 글씨 배치
1) 검은색 view

2) status bar지정
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
}
결과)

'iOS 기본 (swift)' 카테고리의 다른 글
| [iOS - swift] layout subviews 메서드 (3) | 2020.10.24 |
|---|---|
| [iOS - swift] 18. setNeedsLayout, layoutIfNeeded (run loop, update cycle개념) (0) | 2020.09.19 |
| [iOS - swift] 16. notificationCenter (1) | 2020.07.11 |
| [iOS - swift] 15. event의 원리 (hitTest, point, Responder Chain, Touch event) (0) | 2020.06.06 |
| [iOS - swift] 14. frame과 bounds (0) | 2020.06.04 |
Comments
