In my app I'm using map kit.The map kit is working fine but sometimes it fails to acquire user location,so i thought i could show en error message but when i applied the error message it prompting again and again looking very annoying.so i want to ask that when map kit starts to get current user location and if it fails how do i show an error message something like this "Maps unable to determine your current location please try after sometime" then hide the message and show it after sometime if it again fails to acquire user location or if it gets the user location then do nothing.
Asked
Active
Viewed 630 times
2 Answers
0
Why don't you use CLLocationManager to find user's location? It has one pretty delegate method that, I think, will be helpful in your case.
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error

Morion
- 10,495
- 1
- 24
- 33
-
i don't want to use location manager because i must show default blue dot of mapkit. – Rahul Vyas Nov 25 '09 at 10:08
-
it's fine to use both. if the CLLocationManager fails, mapkit will as well. – Carl Coryell-Martin Nov 27 '09 at 07:22
-
@Carl Coryell-Martin hello,no i am getting location from cllocation manager but not getting the blue dot. – Rahul Vyas Nov 28 '09 at 07:54
-
you need to turn on the showsUserLocation property of your MKMapView to have the blue dot show up. – John Wang Apr 13 '10 at 23:00
0
I have used the map kit in my app and when i increase the span of the map it shows crash on iphone.

Anmol Bajpai
- 31
- 2