I use the following codes for an IBAction to open the Maps. I have used this on other apps and it would always drop a pin on the map. This is not working now on 5.0 for some reason. Anyone have any ideas?
Code:
- (IBAction)maps; {
NSString *name = @"Oak Gardens Church of Christ";
NSString *latlong = @"32.69569,-96.83899";
NSString *url = [NSString stringWithFormat: @"http://maps.google.com/maps?q=%@&mrt=yp&ll=%@",
[name stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding],
[latlong stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
}