简体   繁体   中英

Object release problem in iphone

I am using navigation controller to move from one view to another ... i have 3 views

arrangement in stack(navigation controller)is as follows

view1--------->view2----------->view3

on view3 i am loading a webview which show information based on user's current location...

the problem is that when i click backbutton on view3(during loading), my app crashes

my main problem is that the objects gets released when i press back navigation button..Which make an error..

i know that it can be fixed by making user's interaction OFF..

But the loading might take a long time in slow connections(because my app first gets location then send it to google and gets the name of location and then again send a web reguest to display some data) and during this long period user might frustrate ..

is there any alternative? please help...i am just near to fixed my app..only this problem is left...

Try to use NSZombieEnabled option, to discover to which released object you trying to send message.

Double-click an executable in the Executables group of your Xcode project. Click the Arguments tab. In the "Variables to be set in the environment:" section, make a variable called "NSZombieEnabled" and set its value to "YES".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM