我在使用mkmapview显示当前位置,也就是那个blue dot时,那个点总是停留在上次去过的那个地方,比如说我去过湖南,之后每当我打开应用到那一页,地图显示的当前点总是湖南。
为什么啊,很纠结啊。。。
走过路过的,帮忙分析下。
为什么啊,很纠结啊。。。
走过路过的,帮忙分析下。

1 uniy OP 郁闷了 |
2 regent Jul 31, 2012 哎,楼主你也用这个头像 |
3 pythons Jul 31, 2012 给你个参考,不知道你怎么写的。 locatiOnManager= [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.desiredAccuracy = kCLLocationAccuracyThreeKilometers; locationManager.distanceFilter = 50;// 更新事件精度,单位米 [locationManager startUpdatingLocation];//启动 |
4 macji Jul 31, 2012 MKMapview 里只要 showsUserLocation = YES; 即可 |