我想从sqlite数据中检索经度和纬度,然后将这些数据添加到数组中,并将这些数组数据用作fake_location来显示用户的位置。
For solving this problem I am sending all my class TLocationManager.m file code -(id)init{ pointsArray = [[result componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] retain]; NSLog(@"This is the good think to have %@",pointsArray); pointsArrayIndex = 0; //NSLog(@"%@",pointsArrayIndex); oldLocationsIndex = 0;
[result release];
oldLocations = [[NSMutableArray alloc] init];
return self;
}