views:

236

answers:

1

I have issue with userlocation in mkmapview. The thing is that i have navigation controller which pushes mapview , as soon as it pushes it userlocation is queried. But if user pop mapview view before userlocation animation is finished , it throws exception because animation is trying to access deallocated mapview instance.

So my question is , how to prevent that.

I could do it by disabling back button , but i am not sure if that right way to take.

Does anybody know how to stop current animation?

+1  A: 

I had a similar problem and tried this solution.

http://omegadelta.net/2009/11/02/mkdotbounceanimation-animationdidstop-bug/

It worked for me.

Zampano