开发者

MKMapView userLocation not showing in ipod

开发者 https://www.devze.com 2022-12-25 01:57 出处:网络
i used开发者_StackOverflow中文版 self.mapView.showsUserLocation = YES; for showing blue dot (circle) on MKmapview. Its working fine in simulator. but when i tested in Ipod, its not showing. Anybod

i used开发者_StackOverflow中文版

self.mapView.showsUserLocation = YES;

for showing blue dot (circle) on MKmapview. Its working fine in simulator. but when i tested in Ipod, its not showing. Anybody know what will be the reason ? thanks in advance


If the blue circle doesn't show in Maps either, than your local wifi networks aren't in the system (on the iPod your locationis determined by the nearest wifi ssid's). Two solutions: get them listed (not sure where you can do that) or go somewhere where it does work. In the iPhone Simulator you get a simulated location, so not so interesting that it works.

If you get the blue circle in Maps but not in your map, we can look further at it.


Is the iPod on the same, wireless network with location services enabled?


Check if u have given the delegates --->map.delegate=SomeController;

-(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark;

and

- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号