Frage

I would like my iOS 7 app running on the iPad Mini to detect if there is something close to the proximity sensor (within six inches)

Does iPad Mini have a proximity sensor?

Is it accessible via a API?

War es hilfreich?

Lösung

Yes it does. See this for more info.

Additionally, you can enable proximity monitoring on [UIDevice currentDevice], and read its proximity state property.

More info is in the Apple dev documentation.

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