我想将我的位置坐标作为 Google 地图链接 (http://maps.google.com/?saddr=%1.6f,%1.6f) 作为 SMS 发送,但我无法让它工作......如何我应该这样做以使 GoogleMaps 链接因我的位置而异吗?
MFMessageComposeViewController *controller = [[[MFMessageComposeViewController alloc] init] autorelease];
controller.body = @"This is my location http://maps.google.com/?saddr=%1.6f,%1.6f";
NSString *googleMaps = [NSString stringWithFormat:@"http://maps.google.com/?saddr=%1.6f,%1.6f", location.latitude, location.longitude];
controller.recipients = [NSArray arrayWithObjects:nil];
controller.messageComposeDelegate = self;
[self presentModalViewController:controller animated:YES];
}
}
有任何想法吗?真的很感谢一个答案!!!!
谢谢你,节日快乐!