dimanche 30 novembre 2014

How do not turn off the display with proximity sensor in iOS

i want to intercept the proximity sensor without turn off the display.


i know by the documentation that i have only boolean var:


Using the Proximity Sensor:



proximityMonitoringEnabled
proximityState


this code



[UIDevice currentDevice].proximityMonitoringEnabled = YES;


intercept the face, but do not turn off the display. It's possible to turn on the display with the sensor covered?


Thanks all




Aucun commentaire:

Enregistrer un commentaire