开发者

Issue in navigation [closed]

开发者 https://www.devze.com 2023-02-11 14:29 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

Hi 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消