设置CLLocationCoordinate2Dcoor 个数不

2019-06-21  本文已影响0人  布谷布谷7788

    NSIntegercountIndex = array.count;

    CLLocationCoordinate2Dcoor[countIndex];

    for(NSIntegeri =0;i

        NSDictionary*dict = array[i];

        coor[i].latitude= [dict[@"latitude"]floatValue];

        coor[i].longitude= [dict[@"longitude"]floatValue];

        mapView.centerCoordinate= coor[i];

    }

    BMKPolyline*polyline = [BMKPolylinepolylineWithCoordinates:coorcount:countIndex];

    [mapViewaddOverlay:polyline];

//    free(coor);

上一篇下一篇

猜你喜欢

热点阅读