ios - Trying to create a custom initializer method -
So I know there are a group of such questions, but none of their solutions are helping me is.
I'm using the storyboard, starting with this saying so that I initWithCoder
instead of initWithNibName:
.
We got out of that way, so, just want to pass in the second view with an object custom anilizer.
Then in my second view I will have the code like this:
- (id) InitWithMyLifeChangingObject: (MagicType *) Object {// Apparently it's important self = [Super init]; // Some things with my magical object / you know the self-return story; }
And in the form of the story you need to call your global Init:
[second class alloc] initWithMyLifeChangingObject: object];
but initWithMyLifeChangingObject:
is not recognized and a build error tells me that it does not exist ... so what should I do.
Comments
Post a Comment