title: Passing parameters to a custom class on initialization
body: <p>I have a class <code>Message</code> with two attributes, <code>name</code> and <code>message</code>, and another class <code>MessageController</code> with two text fields, <code>nameField</code> and <code>messageField</code>.
  I want to make an instance of <code>Message</code> in <code>MessageController</code>, passing these two attributes as arguments.</p>
  
  <p>Right now, I am doing this:</p>
  
  <pre><code> Message *messageIns = [[Message alloc] init];
   messageIns.name = nameField;
   messageIns.message = MessageField; 
  </code></pre>
  
  <p>How can I pass the values at the creation of an instance?
  I tried to redefine <code>init</code> in Message.m, but I don't know how do that.</p>
  
  <pre><code>-(id)init{
      if((self=[super init])){
  
      }
      return self;
  }
  </code></pre>
  
  <p>Please help.</p>