0
내가 detailTexts
라는 이름의 배열을 가지고 그 수레에서 자신의 데이터를 갖는정수를 정수로 정렬 하시겠습니까?
CLLocation *location = [[CLLocation alloc] initWithLatitude:dlog longitude:dlig];
**CLLocationDistance meters = [userLocation distanceFromLocation:location];**
**float detailFloat = meters * 1000;**
if (meters < 10000) {
NSLog(@"%@", detailText);
[tableData addObject:name];
**detailText = [NSString stringWithFormat:@"%f", detailFloat];**
**[detailTexts addObject:detailText];**
}
내가 처음 거의 위치를 얻을 수있는 배열을 정렬 할 수있는 방법을? (내가 MySQL의에서 그것을 알고 : SORT BY ...)
엑스 코드 4.3 (업데이트 버전), 맥 OS X 라이온
http://stackoverflow.com/questions/7769492/sort-by- 거리/7769557 # 7769557 – vikingosegundo