作者ksksBangBang (Bang!)
看板MacDev
标题Re: [问题] 关於 MAP 一问
时间Wed Oct 17 23:06:44 2012
※ 引述《season5566 (SEASON)》之铭言:
: 各位好! 顺便再问问,
: 如果想要做路径规划的话..
: 该怎麽做?
: 目前看到的APP好像有两种方式呈现
: 一种会离开程式然後用内建地图软体来开..
iOS 5:
NSString* URLString = @"
https://maps.google.com/maps?q=cupertino"
iOS 6
NSString* URLString = @"
http://maps.apple.com/maps?q=cupertino"
NSURL* URL = [NSURL URLWithString:URLString];
[[UIApplication sharedApplication] openURL:URL];
: 这该怎麽把资料传给内建软体去规划呢?
: 另外一种好像可以直接在mapview画出来
MKMapView
http://lmgtfy.com/?q=mkmapview
: 这是怎麽做的? 想办法接google map的API吗?
: 谢谢..!
: ※ 引述《ksksBangBang (Bang!)》之铭言:
: : MKAnnotationView* annotationView = ...
: : annotationView.rightCalloutAccessoryView =
: : [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
: : // add target, etc.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 199.2.242.199
1F:推 yodxxxd:XDDDDD 10/19 12:25