iOS??????????·??????
???????????? ???????[ 2015/1/28 14:11:45 ] ????????ios ?????
???????????????????????Ч???????????ò??2???iOS?????????????????????а????????????????
????????????Ч?????????????????·???滮??????????????????д??
????·???滮
?????????iOS SDK??????????????????????????????????????·?滮????????????????????????????“????”??“?????”???????????????·?滮??????????????????????????????????á?
???????????????·?淶????????£?
-(void)viewDidLoad
{
//?????????????
_searcher = [[BMKRouteSearch alloc]init];
_searcher.delegate = self;
//???????
BMKPlanNode* start = [[[BMKPlanNode alloc]init] autorelease];
start.name = @"????";
BMKPlanNode* end = [[[BMKPlanNode alloc]init] autorelease];
end.name = "????";
BMKTransitRoutePlanOption *transitRouteSearchOption = [[BMKTransitRoutePlanOption alloc]init];
transitRouteSearchOption.city= @"??????";
transitRouteSearchOption.startNode = start;
transitRouteSearchOption.endNode = end;
BOOL flag = [_searcher transitSearch:transitRouteSearchOption];
[transitRouteSearchOption release];
if(flag)
{
NSLog(@"bus??????????");
}
else
{
NSLog(@"bus???????????");
}
}
//???Deleage?????????
-(void)onGetTransitRouteResult:(BMKRouteSearch*)searcher result: (BMKTransitRouteResult*)result
errorCode:(BMKSearchErrorCode)error
{
if (error == BMK_SEARCH_NO_ERROR) {
//?????????????
}
else if (error == BMK_SEARCH_AMBIGUOUS_ROURE_ADDR){
//??·????????????????????????????????
//result.routeAddrResult
}
else {
NSLog(@"?????δ??????");
}
}
//????????delegate????? nil
-(void)viewWillDisappear:(BOOL)animated
{
_searcher.delegate = nil;
}
???????????????????????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11