开发者

Dim iPhone screen

开发者 https://www.devze.com 2023-01-19 20:28 出处:网络
I\'m working on an application where it may be used in a dark area and th开发者_如何学JAVAe brightness is required to be lowered. I wanted to put this into the application, and thought that I could ad

I'm working on an application where it may be used in a dark area and th开发者_如何学JAVAe brightness is required to be lowered. I wanted to put this into the application, and thought that I could add a UIView with a black bg color and change the alpha, but this gets in the way of the user interaction.

Does anyone have an idea on how to do this without blocking human interaction?

Thanks


Set the UIView's userInteractionEnabled property to NO.

0

精彩评论

暂无评论...
验证码 换一张
取 消