Tag: 街道地址

打开具有特定地址iOS 7的地图

我试图让我的应用程序打开苹果地图应用程序,并有地址被拉起来。 我试过这个: – (IBAction)openInMaps:(id)sender { NSString *addressString = @"http://maps.apple.com/?q=1 Infinite Loop, Cupertino, CA"; NSURL *url = [NSURL URLWithString:addressString]; [[UIApplication sharedApplication] openURL:url]; } 和这个 : – (IBAction)openInMaps:(id)sender { NSString *addressString = @"http://maps.apple.com/?q=1_Infinite_Loop,_Cupertino,_CA"; NSURL *url = [NSURL URLWithString:addressString]; [[UIApplication sharedApplication] openURL:url]; } 但button就像它挂钩到什么都没有。 但是这确实有效: – (IBAction)openInMaps:(id)sender { NSString *addressString = @"http://maps.apple.com/?q=Cupertino,CA"; NSURL *url = [NSURL URLWithString:addressString]; [[UIApplication […]