Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access data points of MKPolygon? [closed]

Tags:

ios

mapkit

I'm trying to access the data points of a MKPolygon. There is a (read-only) property of MKMultiPoint class. The doc states that this will return the 'array of points associated with the shape'. However, the return type is MKMapPoint. This is actually one single point of which I can read x and y values. Where are all the other data points? I guess I'm confusing things here. Any help?

Thanks, pawi

like image 460
pawi Avatar asked Sep 16 '25 03:09

pawi


1 Answers

Found it myself: MKMapPoint point = region.points[i];

like image 174
pawi Avatar answered Sep 19 '25 03:09

pawi