MACustomCalloutView.h 795 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // MACustomCalloutView.h
  3. // MAMapKit
  4. //
  5. // Created by shaobin on 17/1/6.
  6. // Copyright © 2017年 Amap. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "MAConfig.h"
  10. ///自定义annotationView的弹出框. 注意:不会触发-(void)mapView: didAnnotationViewCalloutTapped: since 5.0.0
  11. @interface MACustomCalloutView : UIView
  12. ///init时传入的customView since 5.0.0
  13. @property (nonatomic, strong, readonly) UIView *customView;
  14. ///用户自定义数据,内部不做处理 since 5.0.0
  15. @property (nonatomic, strong) id userData;
  16. /**
  17. * @brief 初始化并返回一个MACustomCalloutView since 5.0.0
  18. * @param customView 自定义View,不能为nil
  19. * @return 初始化成功则返回MACustomCalloutView,否则返回nil
  20. */
  21. - (id)initWithCustomView:(UIView *)customView;
  22. @end