不要对对象进行粗暴的等号赋值

错误的写法

_checkinLocation.coordinate.longitude = 26.876812;

_checkinLocation.coordinate.longitude = 100.22569199999998;

正确的写法

 float latitude = 26.876812;   

 float longitude = 100.22569199999998//这里可以是任意的经纬度值  

 CLLocation *_checkinLocation= [[[CLLocation alloc] initWithLatitude:latitude longitude:longitude] autorelease]; 

原文地址:https://www.cnblogs.com/ygm900/p/2862698.html