Link a programmatic instantiation of class x in class y to a view controller of class x
- by Joel Derfner
I have classes Compose and Haiku, each connected to a view controller in IB. Haiku is instantiated in Compose as ghhaiku. Haiku has an array, self.arrayOfHaiku, with 117 members. But in Compose, self.ghhaiku.arrayOfHaiku has no members.
I think the problem is that I haven't linked the instance of Haiku that has the 117-member array with the instance of Haiku created in Compose. But how do I do that?
(I could of course be totally wrong and the problem could be something else, but that seems to make intuitive sense.)
Any thoughts?