override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
// 控制屏幕亮度 0~1
UIScreen.main.brightness = 0.5
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
// 控制屏幕亮度 0~1
UIScreen.main.brightness = 0.5
}
本文标题:监听屏幕亮度
本文链接:https://www.haomeiwen.com/subject/tgvpbftx.html
网友评论