这是卡西克。当我运行我的应用程序时,出现以下错误。当我的应用程序尝试查找用户位置时,它崩溃了。实际上在IOS 4.0和4.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:
最佳答案
您应该完全按照错误文本告诉您的操作:您的 MkAnnotation 委托(delegate)应该实现
- (NSString*)title
方法,提供要在标注 View 中显示的文本。 该方法是可选的,仅当您将 canShowCallout 设置为 YES 时才会调用。
关于iphone - mkmapview 在 IOS 4.2 中崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5933632/