title: Pass variable value from Text field to variable in iOS
body: <p>I have an implementation of class similar to this:</p>
  
  <pre><code>-(id)initWithLogin:(NSString *)_login password:(NSString *)_password{
  
  if(( self = [super init])){
  
      login = _login;
      password = _password;
  
  }
  
  return self;
  
  }
  </code></pre>
  
  <p>and my question is - how to init new object with value from <code>TextField</code> (I know how to alloc and init objects, but don't know how to pass values from TextField to this method)?</p>
  
  <p>I'm very beginner of objective-c so every step-by-step solutions will be appreciated (or links for related articles/video tutorial).</p>