Pregunta

As the question asks.

I'm looking for a guide on permissions. I've only developed for Android before and I was wondering if there was a guide similar to http://developer.android.com/guide/topics/security/permissions.html

I'm not entirely sure how permissions work (or if they're even called this on iOS 6).

¿Fue útil?

Solución

You don't have permissions the way you do on Android, as in you must declare them some where on for hand.

When you, for example, start the locationmanager, the system will ask the user if your app is allowed to receive location updates. If the user does not allow this the the CLLocationManager will call the delegate that it could not retrieve any location updates.

There is also a methods on CLLocationManager called authorizationStatus to check the current status. This is an CLAuthorizationStatus.

Every other component will have a simulare kind of methods and error to check wether the user allows your app to acces data.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top