ios - 运用百度api周边检索,分别检索出公交、学校、购物、医院等周边配套信息,在数据回调的代理中如何来区分这些数据
ringa_lee
ringa_lee 2017-04-18 09:41:52
0
0
577
1、请求方法   
    [self creatPoiSearchWithKey:@"公交" andTag:0];
    
    [self creatPoiSearchWithKey:@"学校" andTag:1];
    
    [self creatPoiSearchWithKey:@"生活" andTag:2];
    
    [self creatPoiSearchWithKey:@"购物" andTag:3];

2、数据回调方法

  • (BMKAnnotationView )mapView:(BMKMapView )mapView viewForAnnotation:(id <BMKAnnotation>)annotation;

发现执行的顺序是先将四个请求方法执行完毕后,再重复调用四次数据回调方法。在回调方法里应该有个判断来做数据分类处理,但是找不到根据什么来判断,求大神指导。

ringa_lee
ringa_lee

ringa_lee

répondre à tous(0)
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!