YLAreaPickerView.h 786 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // YLAreaPickerView.h
  3. // LiveTV
  4. //
  5. // Created by 翟玉磊 on 2019/4/22.
  6. // Copyright © 2019 翟玉磊. All rights reserved.
  7. // 省市区选择
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @protocol YLAreaPickerViewDelegate <NSObject>
  11. - (void)addressPickerViewDidSelected:(NSString *)areaName withDic:(NSDictionary *)info;//点击上方完成按钮的代理传回拼接好的选中地址
  12. - (void)addressPickerViewDidClose;//点击关闭代理
  13. @end
  14. @interface YLAreaPickerView : UIView
  15. @property (weak, nonatomic) id<YLAreaPickerViewDelegate> delegate;
  16. + (instancetype)areaPickerWithTitle:(NSString *)title target:(id<YLAreaPickerViewDelegate>)target;
  17. - (void)show;
  18. - (void)dismiss;
  19. - (void)setupCityWithAreaPath:(NSString *)areaPath;
  20. @end
  21. NS_ASSUME_NONNULL_END