32 lines
795 B
Objective-C
32 lines
795 B
Objective-C
//
|
|
// LocationPickerView.h
|
|
// CustomPicker
|
|
//
|
|
// Created by ko1o on 2018/7/24.
|
|
// Copyright © 2018年 ko1o. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
@class FSLocationPickerView;
|
|
@protocol FSLocationPickerViewDelegate <NSObject>
|
|
|
|
@optional
|
|
- (void)fsLocationPickerView:(FSLocationPickerView *)pickerView locationInfo:(NSArray *)locationInfo;
|
|
|
|
@end
|
|
|
|
@interface FSLocationPickerView : UIView
|
|
|
|
|
|
- (void)showPickerViewWithProvince:(NSString *)province city:(NSString *)city area:(NSString *)area;
|
|
|
|
@property(nonatomic, readonly) UIPickerView *pickerView;
|
|
|
|
@property(nonatomic, copy) void(^locationPickerVauleDidChangeBlock)(FSLocationPickerView *pickerView, NSArray *locationInfo);
|
|
|
|
@property(nonatomic, weak) id<FSLocationPickerViewDelegate> delegate;
|
|
|
|
- (NSArray *)locationInfo;
|
|
|
|
@end
|