문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top