Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何[UIScreen mainScreen]在iOS5.0之前的iOS中更改'亮度值,我们可以brightness在iOS5.0中使用''。iOS 4.3 中的替代方案是什么。
[UIScreen mainScreen]
brightness
无法直接在 iOS < 5.0 上处理亮度。但是,它存在一个技巧:您可以在主视图上添加 UIView(黑色背景)并更改(黑色 uiview)的 alpha 值。