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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -