iPhone: Sorting based on location

前端 未结 5 1711
天命终不由人
天命终不由人 2020-12-14 13:37

I have been working on an iPhone app, where-in i have list of users in a NSMutableArray like below.

myMutableArray: (
    {
        FirstName = Getsy;
               


        
5条回答
  •  没有蜡笔的小新
    2020-12-14 13:58

    You can calculate the distance (geographical, not flat plane!) between your position and each of these items' positions and order by that value.

提交回复
热议问题