Converting CLLocationCoordinates2D into an NSValue

后端 未结 4 744
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-22 07:31

I\'m simply trying to convert CLLocationCoordinates into an NSValue to be used in an array brought back later in my app. Here is my code:



        
4条回答
  •  再見小時候
    2021-01-22 07:38

    It can be that you didn't initialize your array. That's why it's nil when you log it.

    _locationsArray = [[NSMutableArray alloc] init];
    

提交回复
热议问题