i am using a navigation controller in my application.... this app gets the current gps location of device and according to which it shows results from a web page(coffee shops near that place)..
all works fine but during the request if the user click navigation back button my app. shows error... i know this error is about web request ....
(NOTE--i don't want to disable navigation back button)
is it possible that when user click back button the corresponding web request also stop? if yes please help and provide code if possible..... Thank You
UPDATE-----------------
some of my code is this code is for getting name of current place...
NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps/geo?q=%@&output=csv",
[NSString stringWithFormat:@"%f,%f",mUserCurrentLocation.coordinate.latitude, mUserCurrentLocation.coordinate.longitude]];
NSString *locationString = [NSString stringWithContentsOfURL:[NSURL URLWithString:urlString]];
NSArray *listItems = [locationString componentsSeparatedByString:@"\""];
.....my app work fine if user does not click back button during the process..