viewwilldisappear fix?
Well, my fix right now was to release the view inside "ViewWillDisappear" instead of "ViewDidUnload" etc. because I suppose iOS will retain those views otherwise? Seems to avoid the crash... not sure if it's a clean fix though.
EDIT: never mind, doesn't work
EDIT 2: Ooops. I was forgetting to set the accelerometer delegate to nil when I was finished. n00b moment. For memory purposes, should I re-set the accelerometer's delegate to nil every time I pause data collection?
Last edited by shimmy; 07-28-2011 at 10:21 PM.
|