I have read many Forums on this topic but I still haven't found an exact answer. Is the iPhone's proximity sensor only a trigger that turns the display on or off or can one get a distance from the sensor to an object?
Thank you!
The proximity sensor won't be precise enough to give you distances, it's basically a light sensor...
来源:https://stackoverflow.com/questions/4444078/measure-distance-from-an-iphone-to-an-object-using-proximity-sensor