使用MKMapView设置位置坐标时程序崩溃.
日志:
日志:
Terminating app due to uncaught exception ‘NSInvalidArgumentException’,reason: ‘Invalid Region
<center:+112.57075000,+37.87049600 span:+0.05165163,+0.43945312>
‘
我的计划中的跨度是
MKCoordinateSpan span; span.latitudeDelta = .05; span.longitudeDelta = .02;
编码后:
self.mMKMapview.region = [self.mMKMapview regionThatFits:region];
如日志所示,范围更改为:0.05165163,0.43945312
有人请求帮助,我在这里待了两天.
谢谢!