[英]How can I make the font size of the status bar of my old app to match the system status bar in iOS 10?
UIApplication.shared.statusBarStyle = .lightContent
在每個視圖控制器內部,使用此代碼在狀態欄中提供自動顏色支持
覆蓋var preferredStatusBarStyle:UIStatusBarStyle {return .lightContent}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.