ingh.am
ingh.am

Reputation: 26752

Dim iPhone screen

I'm working on an application where it may be used in a dark area and the 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

Upvotes: 0

Views: 529

Answers (1)

kennytm
kennytm

Reputation: 523274

Set the UIView's userInteractionEnabled property to NO.

Upvotes: 1

Related Questions