我正在IOS SDK 7.0中开发MapKit更新的演示应用程序。
我试图通过IOS SDK 7.0在两个地方找到路线b / w。就像您知道的那样,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
谁能帮我解决这个问题?
谢谢
最佳答案
我发现了问题。实际上,我在我的指导请求中传递了CLPlacemark
而不是MKPlacemark
。
谢谢
关于ios - iOS SDK 7.0 + MKDirections + calculateDirectionsWithCompletionHandler,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17106503/