转载:https://www.jianshu.com/p/b24aebb4c12a
一、过去修改状态栏样式是通过添加 Info.plist 属性来修改:
1、在Info.plist中设置 View controller-based status bar appearance 为 NO
2、在需要修改的控制器中 ...……
//: Playground - noun: a place where people can play
import UIKit
var str = amp;quot;Hello, playgroundamp;quot;
enum Movement {
case Left
case Right
case Top
case Bottom
}
let aMove ...……