我正在开发 IOS SDK 7.0 中 MapKit 更新的演示应用程序。
我正在尝试通过 IOS SDK 7.0 找到两个地方的黑白路线。如您所知,Apple 允许在应用程序内获取方向,而无需使用 IOS SDK 7.0 的外部 API。
当我调用calculateDirectionsWithCompletionHandler 时,出现异常。我的代码和我的错误如下。
[direction calculateDirectionsWithCompletionHandler:^(MKDirectionsResponse *response, NSError *error) {
NSLog(@"%@",[response description]);
NSLog(@"%@",[error description]);
}];
错误:
[CLPlacemark isCurrentLocation]: unrecognized selector sent to instance 0x9c34ab0
谁能帮我解决这个问题?
谢谢