title: Initialize instance variables as key/value pair from NSDictionary?
body: <p>I have my NSObject subclass's public interface defined as,</p>
  
  <pre><code>@interface MyObject : NSObject
  {
      NSString *_key1;
      NSString *_key2;
      NSString *_key3;
  }
  - (id)initWithDict:(NSDictionary *)dict;
  @end
  </code></pre>
  
  <p>Is there are trick to implement the initWithDict: method so that I can pass a NSDictionary defined as </p>
  
  <blockquote>
    <p>{"key1" : "value1", "key2" : "value2", "key3" : "value3"}</p>
  </blockquote>
  
  <p>and the init method can set the  related instance variables with their corresponding "value"? </p>