Dim iPhone Screen, but don't let it sleep

前端 未结 5 693
无人及你
无人及你 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:28

    I use a "nightstand" type alarm clock app that, if you double-tap its clock screen, dims the screen by some amount.

    I believe what it's probably really doing is laying a partially-opaque black UIView over its entire content. I think the backlight isn't really dimmed, but the black color laid over the screen makes it seem dimmer. It works.

提交回复
热议问题