title: In a UIView dealloc method do you dealloc your properties BEFORE or AFTER [super dealloc]?
body: <p>I have a custom UIView which gets loaded through a NIB inside a UIViewController.</p>
  
  <p>I've been struggling with a <em>-[UIScrollView retainCount]: message sent to deallocated instance</em> error all day.</p>
  
  <p>My custom UIView subclass dealloc method looked like this:</p>
  
  <pre><code>-(void)dealloc {
      [myScrollView dealloc];
      [someProperty dealloc];
      [super dealloc];
  }
  </code></pre>
  
  <p>The problem was that it was <strong>always</strong> crashing on [super dealloc] because of the [myScrollView dealloc] preceding it.</p>
  
  <p>When I changed the method around to:</p>
  
  <pre><code>-(void)dealloc {
     [super dealloc];
     [myScrollView dealloc];
     [someProperty dealloc];
  }
  </code></pre>
  
  <p>Everything is working fine. My question is, does it make a difference if [super dealloc] is called first or last? In most examples I see it called last.</p>