سؤال

I'm using the geofencing in iOS 7 and I want to create a method that return true if we are in a specific region (using the identifier). This method returns all regions, not only the region where we are :

[locationManager monitoredRegions]

Is there a method that return the regions currently detected ?

Thanks for your help !

هل كانت مفيدة؟

المحلول

Listen for delegate event, didEnterRegion: and didExitRegion:, and keep an array/dictionary of active regions. Would be a solution.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top