YLCityPickerView.h 782 B

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