This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
好的,然后尝试这个
,不要在这里释放 appDelegate 对象。它是整个应用程序的共享副本。在超级释放之前释放所有对象。
Ok then try this
dont release appDelegate object here.it is shared copy for whole app. release all object before super dealloc.
我认为您正在释放具有 MKMapView 委托的视图控制器,不要释放具有 MKMapView 委托的视图控制器。我认为您在修复内存泄漏时释放了该委托
I think you are releasing the viewcontroller that has delegate for MKMapView, do not release the viewController that has MKMapView delegates. I think you released that delegate when you were fixing the memory leaks
在Objective C中,通常会发生这样的情况:当你在dealloc方法中释放已经“释放”的对象时,它会显示bad extra。要跟踪哪个对象已经发布,请使用 NSZombieEnabled 您可以在控制台中看到更多说明。
In Objective C, It generally happens that when you realese object in dealloc method which is already "release", it will display bad excess. To track which object is already release use NSZombieEnabled You can see more clarification in your console.