This is the way where I am taking the current location
NSString* lat = [[NSString alloc]initWithFormat:@"%f",locationManager.location.coordinate.latitude];
NSString* lon = [[NSString alloc]initWithFormat:@"%f",locationManager.location.coordinate.longitude];
NSString *URL = [NSString stringWithFormat:@"http://maps.google.com/maps/geo?q=%@,%@&output=csv&sensor=false",lat,lon];
NSURLRequest *rq = [NSURLRequest requestWithURL:[NSURL URLWithString:URL]];
con = [[NSURLConnection alloc] initWithRequest:rq delegate:self];
webData = [[NSMutableData data] retain];
and in the connection delegate method I am getting the current location name.200,9,”IITI Computer Education, Wadala, Mumbai, Maharashtra 400067, India” in the simulator.
Now my question is How can we set annotation on the same place in the map using the string place name which I got previously.
Thanks in advance
First make an objective c class make your .h file look like following
Now in .m file
Now in your controller.m file where you want to add an annotaion make an import of above file
now you can use the following function to add anotation to any cordinate
hope this will help you