Which class will be instanciated
Posted
by Michael
on Stack Overflow
See other posts from Stack Overflow
or by Michael
Published on 2010-06-16T11:11:37Z
Indexed on
2010/06/16
12:02 UTC
Read the original article
Hit count: 136
iphone
|interface-builder
Say I have 2 subclasses from UIViewController
, class A
and class B
.
In Main nib file an object is representing class A
and it is set to load file from Secondary nib file. The owner of Secondary nib is of class B
.
The question is - from which class an object in Main nib file will be instanciated once the nib files unarchived in the memory?
The reason this question arised is that I have to take care myself if such reference to external NIB file present, to ensure that the first nib's object and second nib's owner is same. Please correct me if my statement is wrong.
© Stack Overflow or respective owner