0

I read the related posts and don't quite get it. Should IBOutlets be strong or weak under ARC? My understanding is that since the top level view already has a strong pointer to the outlet automatically, so that we should not make another strong pointer to it from the controller. Therefore when the top level view is removed, the outlets could get removed too.

Is my understanding correct?

Community
  • 1
  • 1
Philip007
  • 3,190
  • 7
  • 46
  • 71

1 Answers1

1

Yes, that's correct. You should bear in mind though, that outlets are not necessarily subviews of the main view - they can be top-level objects too, in which case you should declare their outlets as strong.

Jim
  • 72,985
  • 14
  • 101
  • 108
  • A good reminder. Is there a strong pointer from the view controller to each of its top level views, provided I create multiple top level views. If I don't specify strong or weak, what's the default behavior? – Philip007 Jul 29 '12 at 16:02