我在使用mkmapview显示当前位置,也就是那个blue dot时,那个点总是停留在上次去过的那个地方,比如说我去过湖南,之后每当我打开应用到那一页,地图显示的当前点总是湖南。
为什么啊,很纠结啊。。。
走过路过的,帮忙分析下。
为什么啊,很纠结啊。。。
走过路过的,帮忙分析下。
|
1
郁闷了
|
|
regentJul 31, 2012
2
哎,楼主你也用这个头像
|
|
pythonsJul 31, 2012
3
给你个参考,不知道你怎么写的。
locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.desiredAccuracy = kCLLocationAccuracyThreeKilometers; locationManager.distanceFilter = 50;// 更新事件精度,单位米 [locationManager startUpdatingLocation];//启动 |
|
macjiJul 31, 2012
4
MKMapview 里只要 showsUserLocation = YES; 即可
|