在CLLocationManager上设置动态数组,但仅在最后一个值/索引上显示标记

时间:2018-02-28 15:10:22

标签: ios objective-c

for (int i=0; i<latilongiArray.count; i++) {
    LatitudeDouble = [[latilongiArray[0] objectAtIndex:i]  doubleValue];
    LongitudeDouble = [[latilongiArray[0] objectAtIndex:i]doubleValue];
    marker.position = CLLocationCoordinate2DMake(LatitudeDouble, LongitudeDouble);
    marker.icon =  [UIImage imageNamed:@"uber_car"];
    marker.map = self.map;
}

latilongiArray是可变数组

0 个答案:

没有答案