I have a UIView that gets init from a Viewcontroller, however, when I try to pass it an array the array comes back during the init. But if I make a button on the UIView and then check the passed array then I can see it is loaded in correctly. So my question is this, how might I pass an array to a UIView so that when the UIView is alloc’ed and init’ed I can have the array loaded in, not after.
Thanks for all the help.
Add to your UIView subclass something like
And
myArraysupposed to be a field (or property) of your class.