Mapbox错误RMConfiguration setaccesstoken

时间:2014-11-12 19:01:27

标签: ios mapbox

运行示例时出现此错误:

"No visible @interface for 'RMConfiguration' declares the selector 'setAccessToken:'"

有什么想法吗?什么可能导致它的代码?我正在使用SDK的1.4.1版本

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [[RMConfiguration configuration] setAccessToken:@"<access token>"];
    RMMapboxSource *tileSource = [[RMMapboxSource alloc] initWithMapID:@"examples.map-zr0njcqy"];
    RMMapView *mapView = [[RMMapView alloc] initWithFrame:self.view.bounds andTilesource:tileSource];
    [self.view addSubview:mapView];
}

1 个答案:

答案 0 :(得分:1)

根据changelog,暂时删除了此内容。尝试使用develop分支,或者只使用v3 API,只提供mapID