아미(아름다운미소)

Change Background Color Status Bar iOS 본문

랭귀지/SWIFT

Change Background Color Status Bar iOS

유키공 2018. 5. 22. 09:30

iOS / Swift Status Bar Background Color 변경


.plist 에 추가



- 소스에 추가

        UIApplication.shared.statusBarStyle = .lightContent

        UINavigationBar.appearance().clipsToBounds = true

        let statusBar: UIView = UIApplication.shared.value(forKey: "statusBar") as! UIView

        statusBar.backgroundColor = UIColor(red: 0.0/255.0, green: 152.0/255.0, blue: 186.0/255.0, alpha: 1.0)

Comments