Dim iPhone Screen, but don't let it sleep

前端 未结 5 703
无人及你
无人及你 2021-01-31 18:12

Update

https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIScreen_Class/index.html#//apple_ref/occ/instp/UIScreen/brightness

That\'s the Ap

5条回答
  •  臣服心动
    2021-01-31 18:34

    Can you set proximityState to trick the iPhone into thinking that it is close to someone's ear? This would work with the iPhone, but not the iPod touch. There is no way to selectively turn adjust the brightness ... apps that dim the screen typically do so by putting a partly transparent image over the current one.

提交回复
热议问题