Pergunta

I'm trying to make an app that does something when you put your hand over the proximity sensor. I was looking at the apple docs. on UIDevice and can't find much information on how to actually do something when the sensor is covered. I would assume there is a method I have to put in my code for this but can't find it. Thanks.

Foi útil?

Solução

From your link, I get proximityMonitoringEnabled. I've ask google for this, and found this link : http://mobileorchard.com/new-in-iphone-30-tutorial-series-part-4-proximity-detection/

probably not the only one, but look ok.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top