Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-19-2010, 07:29 PM   #13 (permalink)
ratbastid
Registered Member
 
Join Date: May 2010
Posts: 6
ratbastid is on a distinguished road
Default

Quote:
Originally Posted by smasher View Post
Do you set a delegate for MKMapview? You should set the delegate property back to nil when you're done with it, otherwise it will keep calling methods on the delegate object even after the delegate object is destroyed.
That's exactly what's happening. Yesterday I had a VERY strange problem where a few seconds after backing out of a nav controller view, I'd crash with a call to a deallocated object.

After a lot of fussing around about NavController mishandling my view controllers, I realized that the deallocated object WAS the viewController I'd just popped. It was set as the delegate for a CLLocationManager object that was trying its darndest to report a new location.

Just telling it to stopUpdatingLocation in the controller's -(void)dealloc{ } was enough to stop the problem.
ratbastid is offline   Reply With Quote
 

» Advertisements
» Online Users: 478
18 members and 460 guests
Absentia, AppsImpact, baja_yu, Brandt, BuzzingDanZei, Domele, dtkamal, falco1973, fschwehn, gbenna, JMLdev, mer10, Mrclam, nestochi, onenoc, stoone, toolifog, vbovio
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,549
Threads: 94,076
Posts: 402,718
Top Poster: BrianSlick (7,990)
Welcome to our newest member, JMLdev
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:08 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.