I have already Fetched the name of location through coordinates.
with this code
reverseGeocoder = [[MKReverseGeocoder alloc] initWithCoordinate:newLocation.coordinate];
reverseGeocoder.delegate = self;
[reverseGeocoder start];
here newLocation having my current location
and reverseGeocoder is the type of MKReverseGeocoder.
I also add the framework MapKit and add delegate MKReverseGeocoderDelegate.
and define this delegate in .m file
-(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
{...}
when we start this delegate and get the location with (MKPlacemark*)placemark after that i show this with in an AlertView in above delegate method or any other user defined method like:
[[[[UIAlertView alloc] initWithTitle:@"Place"
message:[[[NSString alloc] initWithFormat:@"%@",placemark] autorelease]
delegate:self
cancelButtonTitle:@"Okay"
otherButtonTitles:nil] autorelease] show];
Problem is that my alert view is appeared again and again in every second.
so please let me know how to stop the reverseGeocoder or how i can see this alert view just once.
thanx in advance.