Issue in navigation [closed]
This question appears to be off-topic because 开发者_JAVA技巧it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this questionHi every i have made an application and i run in simulator and iphone its works fine and i alnalize it and remove memory leakages.
But today i ran the app on simulator when i am going to second view it display the view fine but when i came back to second view it crash without showing any message ...
Is it bad Excess? i don't think soo...
Ok then try this
dont release appDelegate object here.it is shared copy for whole app. release all object before super dealloc.
- (void)dealloc {
//[appDelegate release];//here crash
[staticImageDictionary release];
[siteData release];
[newdata release];
[connection release];
[webData release];
[activity release];
[super dealloc];
}
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
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.
精彩评论