JCCMapPicker - 三级联动地图选择器


MIT
iOS
Objective-C

软件简介

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];
}