• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ARC refactor misses IBOutlets?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >ARC refactor misses IBOutlets? (From: Rick Mann <email@hidden>)
 >Re: ARC refactor misses IBOutlets? (From: David Duncan <email@hidden>)
 >Re: ARC refactor misses IBOutlets? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: ARC refactor misses IBOutlets?
  • Next by Date: rename of project doesn't rename scheme
  • Previous by thread: Re: ARC refactor misses IBOutlets?
  • Next by thread: Instruments source line colors?
  • Index(es):
    • Date
    • Thread