title: Is this property assignment for iOS correct?
body: <p>I've seen that you should assign a property this way: </p>
  
  <pre><code>- (void)viewDidLoad {
  
      NSDateFormatter *tempFormatter = [[NSDateFormatter alloc] init];
      self.dateFormatter = tempFormatter;
      [tempFormatter release];
  }
  
  ...
  
  - (void)dealloc {
  
      [dateFomatter release];
      [super relase];
  }
  </code></pre>
  
  <p>Where dateFormatter is defined like this </p>
  
  <pre><code>// Header
  @property (nonatomic, retain) NSDateFormatter *dateFormatter;
  
  // Implementation
  @synthesize dateFomatter;
  </code></pre>
  
  <p>This way I avoid a double assignment. </p>