Question

I would like to let a user to adjust a region to be monitored like the iOS 7 reminder app as shown on the attached image bellow.

I have created a rigion like:

CLRegion *newRegion = [[CLRegion alloc] initCircularRegionWithCenter:regionAnnotation.coordinate radius:100.0 identifier:[NSString stringWithFormat:@"%f, %f",regionAnnotation.coordinate.latitude, regionAnnotation.coordinate.longitude]]; regionAnnotation.region = newRegion;

Do we have a public api to let the user adjust the radius of this region?

enter image description here

Was it helpful?

Solution

These sorts of things are usually easier if you don't think about the user control as part of the map. Instead, disable interaction with the map or put a transparent view over it, then show your control above that. Respond to changes in the control by adjusting the map programmatically. You can also make use of MapKit API for doing the pixel-to-distance conversions that are necessary for this.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top