GFAddressPicker.h 925 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // GFAddressPicker.h
  3. // 地址选择器
  4. //
  5. // Created by 1暖通商城 on 2017/5/10.
  6. // Copyright © 2017年 1暖通商城. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @protocol GFAddressPickerDelegate <NSObject>
  10. @optional
  11. /** 代理方法返回省市区*/
  12. - (void)GFAddressPickerWithProvince:(NSString *)province
  13. city:(NSString *)city area:(NSString *)area;
  14. /** 取消代理方法*/
  15. - (void)GFAddressPickerCancleAction;
  16. @end
  17. @interface GFAddressPicker : UIView
  18. /** 省 */
  19. @property (nonatomic, strong) NSString *province;
  20. /** 市 */
  21. @property (nonatomic, strong) NSString *city;
  22. /** 区 */
  23. @property (nonatomic, strong) NSString *area;
  24. @property (nonatomic, weak) id<GFAddressPickerDelegate> delegate;
  25. - (void)updateAddressAtProvince:(NSString *)province city:(NSString *)city town:(NSString *)town;
  26. /** 内容字体 */
  27. @property (nonatomic, strong) UIFont *font;
  28. @end