自分の位置座標を 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];
}
}
何か案は?本当に答えていただければ幸いです!!!!
ありがとう、そして楽しい休日を!