RCLocationPickerViewController Class Reference

Inherits from RCBaseViewController : UIViewController
Conforms to CLLocationManagerDelegate
UITableViewDataSource
UITableViewDelegate
Declared in RCLocationPickerViewController.h

Overview

地理位置选取的ViewController

  delegate

地理位置选择完成之后的回调

@property (nonatomic, weak) id<RCLocationPickerViewControllerDelegate> delegate

Discussion

地理位置选择完成之后的回调

Declared In

RCLocationPickerViewController.h

  dataSource

位置选择的数据源

@property (nonatomic, strong) id<RCLocationPickerViewControllerDataSource> dataSource

Discussion

位置选择的数据源

Declared In

RCLocationPickerViewController.h

  mapViewContainer

mapViewContainer

@property (nonatomic, strong) IBOutlet UIView *mapViewContainer

Discussion

mapViewContainer

Declared In

RCLocationPickerViewController.h

– initWithDataSource:

初始化地理位置选取的ViewController

- (instancetype)initWithDataSource:(id<RCLocationPickerViewControllerDataSource>)dataSource

Parameters

dataSource

位置选择的数据源

Return Value

地理位置选取的ViewController对象

Discussion

初始化地理位置选取的ViewController

Declared In

RCLocationPickerViewController.h

– leftBarButtonItemPressed:

退出当前界面

- (void)leftBarButtonItemPressed:(id)sender

Parameters

sender

返回按钮

Discussion

退出当前界面

SDK在此方法中,会针对默认的NavigationBar退出当前界面; 如果您使用自定义导航按钮或者自定义按钮,可以重写此方法退出当前界面。

Declared In

RCLocationPickerViewController.h

– rightBarButtonItemPressed:

完成位置获取

- (void)rightBarButtonItemPressed:(id)sender

Parameters

sender

完成按钮

Discussion

完成位置获取

点击完成按钮的后会调用本函数。

Declared In

RCLocationPickerViewController.h