I have a nib in my ARC-enabled project which contains two UIViews
at the top level. One is the main view and connected to a property view
in the nib's owner, as usual, as a weak reference.
The second top level UIView
is connected to another property in the file's owner. If I define that property also as weak
, the system seems to be deallocating it immediately -- so it seems the nib loader only retains the first and main UIView
in the nib file. Is this correct, and if so, is there any documentation to back this up? I've been looking for confirmation, but can't find it mentioned anywhere in Apple docs or on Stack Overflow.
I'm running Xcode 4.5.2.