Re: ARC refactor misses IBOutlets?
Re: ARC refactor misses IBOutlets?
- Subject: Re: ARC refactor misses IBOutlets?
- From: David Duncan <email@hidden>
- Date: Sat, 27 Oct 2012 18:29:28 -0700
On Oct 27, 2012, at 3:53 PM, Rick Mann <email@hidden> wrote:
> So, in iOS 6, -viewDidUnload is no longer called, so any work one might've done there is never being done (say, removing observers or invalidating timers).
Due to the other asymmetries between -viewDidLoad and -viewDidUnload however, it was never really a good idea to manage anything other than views and view related memory in -viewDidUnload.
The recommendations would be to:
1) Handle memory that you can release on memory warning in -didRecieveMemoryWarning
2) Handle observation/timers/misc things related to displaying a UI in -view[Will/Did][Appear/Disappear]:. This also has the advantage of ending these processes when you present/push another view controller, whereas doing so in -viewDidUnload makes the exact timing of ending these processes undefined.
--
David Duncan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden