如何检查CLLocationiOS的有效性?
事实上,这是我的情况,
我只是创建一个新地图
mapView = [[MKMapView alloc] initWithFrame:CGRectMake(10, 30, 300, 380)];
mapView.showsUserLocation = YES;
[mapView setDelegate:self];
Run Code Online (Sandbox Code Playgroud)
然后我想检查用户位置的有效性
mapView.userLocation.location
Run Code Online (Sandbox Code Playgroud)
由于在使用用户位置时出现此错误
'NSInvalidArgumentException', reason: 'Invalid Coordinate -180.00000000, -180.00000000'
Run Code Online (Sandbox Code Playgroud)
提前谢谢〜