報(bào)錯(cuò)如圖
解決辦法如下:
直接復(fù)制代碼配置key 是這樣的:
//配置用戶Key
[MAMapServices sharedServices].apiKey = @"用戶Key"
而實(shí)際應(yīng)該是:
引入基礎(chǔ)SDK頭文件#import 并添加如下示例代碼亿絮,配置之前在官網(wǎng)上申請(qǐng)的Key:
[AMapServices sharedServices].apiKey = @"用戶Key";
報(bào)錯(cuò)如圖
解決辦法如下:
直接復(fù)制代碼配置key 是這樣的:
//配置用戶Key
[MAMapServices sharedServices].apiKey = @"用戶Key"
而實(shí)際應(yīng)該是:
引入基礎(chǔ)SDK頭文件#import 并添加如下示例代碼亿絮,配置之前在官網(wǎng)上申請(qǐng)的Key:
[AMapServices sharedServices].apiKey = @"用戶Key";