Question

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.

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top