티스토리 뷰
상태바 뷰를 가져오는 변수를 확장하는 코드이다.
뷰를 가져와 여러 속성들을 변경하면 됨.
extension UIApplication {
var statusBarView: UIView? {
return value(forKey: "statusBar") as? UIView
}
}
UIApplication.shared.statusBarView?.backgroundColor = .red
'Swift' 카테고리의 다른 글
UITextView - attributed text center alignment (0) | 2018.04.03 |
---|---|
keyboard height 구하는 방법 (0) | 2018.04.03 |
App Store Icon 에러!! (0) | 2018.03.29 |
CATransaction 사용하여 complete callback 함수 만들어보기. (0) | 2017.06.06 |
APNS 구현해보기 (0) | 2017.02.22 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- NIB
- permission error
- Design Pattern
- RECORDING
- BaseViewController
- ssh
- Coordinator
- HLS
- http live streaming
- CollectionView
- m3u8
- AVFoundation
- xib
- customAlertView
- TDD
- testing
- AVKit
- Cleancode
- Realm
- Closure
- UIBarButtonItem
- UIButton
- Video
- carousel
- IOS
- database
- UIControl
- Swift
- pagingView
- AssociatedObject
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함