Frage

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.

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top