Greetings,
I'm encountering a lot of conflicting information regarding the safety of making an IBOutlet to a subview as strong. According the 2015 WWDC episode 407, you're encouraged to declare IBOutlets as strong, and the exception to the rule should be that only IBOutlets which point upstream in the view hierarchy should be declared as weak. I never have the exceptional case.
However Apple's documentation https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/CocoaNibs.html
states that "Outlets should generally be
weak
, except for those from File’s Owner to top-level objects in a nib file".Is this outdated documentation? I want to keep my IBOutlets as strong because there's no retain cycle (dealloc gets called) since I never take a strong reference to any thing up in the view hierarchy, and also because I'd like the flexibility of being able to dynamically remove one or more subviews and add them in later.
If this is outdated documentation, can someone please point me to up to date documentation on this subject?
Thanks!