当我们看到如下方法时,我们怎么判断这个方法时普通对方法还是委托对方法呢?

- (BMKAnnotationView *)mapView:(BMKMapView *)mapView viewForAnnotation:(id <BMKAnnotation>)annotation

我们只要看这个方法对第一个参数就好了。如果这个方法对第一个参数时一个类对对象,那么,这个方法多数就是这个类对delegate方法了。

上面对这个方法,就是BMKMapViewDeletate类的一个方法。

相关文章:

  • 2022-03-06
  • 2021-12-12
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
猜你喜欢
  • 2021-11-11
  • 2021-11-27
  • 2022-12-23
  • 2021-06-12
  • 2021-07-01
  • 2021-06-14
相关资源
相似解决方案