Reputation: 366
I want to create an app, where when user taps on mapview , it will create geofence for that locations(it could be circular , polygon or any type). I want to get notify whenever user enters or exits from the created region. I have managed to achieve with circular regions but want to do it with polygon or user defined area as well.
Please suggest.
Upvotes: 0
Views: 161
Reputation: 106
Use the CLLocationManager: create a region and monitor it with startMonitoringForRegion:
. For notifications use the delegate methods
locationManager:didEnterRegion:
locationManager:didExitRegion:
locationManager:didDetermineState:forRegion:
Upvotes: 0