NSMutableArray of ClLocationCoordinate2D

前端 未结 5 931
遇见更好的自我
遇见更好的自我 2020-12-16 11:27

I\'m trying to create then retrieve an array of CLLocationCoordinate2D objects, but for some reason the array is always empty.

I have:

NSMutableArray         


        
5条回答
  •  一生所求
    2020-12-16 12:18

    You need to allocate your array.

    NSMutableArray* currentlyDisplayedTowers = [[NSMutableArray alloc] init];
    

    Then you can use it. Be sure to call release when you are done with it or use another factory method.

提交回复
热议问题