iphone Programming Glossary: coordslen
iPhone MKMapView - MKPolygon Issues http://stackoverflow.com/questions/5474299/iphone-mkmapview-mkpolygon-issues alloc initWithMockData coordinateData dataController getCordData CLLocationCoordinate2D coords NULL NSUInteger coordsLen 0 How do we actually define an array of CLLocationCoordinate2d MKPolygon polygon MKPolygon polygonWithCoordinates coords.. we actually define an array of CLLocationCoordinate2d MKPolygon polygon MKPolygon polygonWithCoordinates coords count coordsLen mapView addOverlay polygon MKOverlayView mapView MKMapView mapView viewForOverlay id MKOverlay overlay MKPolygonView polygonView.. and free to release the memory . Loop through your NSArray and set it each element in the struct array. For example coordsLen coordinateData count CLLocationCoordinate2D coords malloc sizeof CLLocationCoordinate2D coordsLen for int i 0 i coordsLen..
|