OGeek|极客世界-中国程序员成长平台

标题: iphone - mkmapview 在 IOS 4.2 中崩溃 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 07:36
标题: iphone - mkmapview 在 IOS 4.2 中崩溃

这是卡提克。当我运行我的应用程序时,我收到以下错误。当我的应用程序试图找到用户位置时,它崩溃了。实际上在 IOS 4.04.1 中它工作正常。只有在 4.2 中它才会崩溃。你能帮帮我吗?

CoreAnimation: ignoring exception: (null) must implement title when canShowCallout is YES on correspoding view > visible:0 +0.00000000, +0.00000000 2011-05-09 12:32:40.631 HOV[1821:207] * Terminating app due to uncaught exception 'NSGenericException', reason: '> visible:0 +38.91791916, -77.20580292 must implement title when canShowCallout is YES on correspoding view > visible:0 +38.91791916, -77.20580292' * Call stack at first throw:



Best Answer-推荐答案


你应该完全按照错误文本告诉你的去做:你的 MkAnnotation 委托(delegate)应该实现

- (NSString*)title

方法,它提供要在标注 View 中显示的文本。 该方法是可选的,仅当您将 canShowCallout 设置为 YES 时才会调用该方法。

关于iphone - mkmapview 在 IOS 4.2 中崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5933632/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4