JCCMapPicker 是一款三级联动地图选择器。
import "JCCUIKit.h"
JCCUIKit 下载地址
- (CIHMapPickerView *)mapPickerView { if (!_mapPickerView) { _mapPickerView = [[CIHMapPickerView alloc] init]; _mapPickerView.delegate = self; } return _mapPickerView; } - (void)hideMapPickerView { if (self.mapPickerView.superview) { [self.mapPickerView removeFromSuperview]; } }#pragma mark - CIHMapPickerViewDelegate- (void)mapPickerViewDidSelectCancel:(CIHMapPickerView *)mapPickerView { [self hideMapPickerView]; } - (void)mapPickerView:(CIHMapPickerView *)mapPickerView didPickerLocation:(CIHLocation *)location { [self hideMapPickerView]; NSString *addr = [location addr]; }