¡@

Home 

2014/10/15 ¤U¤È 10:15:35

iphone Programming Glossary: usera

iPhone: Sorting based on location

http://stackoverflow.com/questions/9308020/iphone-sorting-based-on-location

check my updated code. Is it fine . NSArray orderedUsers myMutableArray sortedArrayUsingComparator ^ id a id b NSArray userA NSArray a NSArray userB NSArray b CGFloat aLatitude userA valueForKey @ Latitude floatValue CGFloat aLongitude userA valueForKey.. sortedArrayUsingComparator ^ id a id b NSArray userA NSArray a NSArray userB NSArray b CGFloat aLatitude userA valueForKey @ Latitude floatValue CGFloat aLongitude userA valueForKey @ Longitude floatValue CLLocation participantALocation.. userA NSArray a NSArray userB NSArray b CGFloat aLatitude userA valueForKey @ Latitude floatValue CGFloat aLongitude userA valueForKey @ Longitude floatValue CLLocation participantALocation CLLocation alloc initWithLatitude aLatitude longitude..