How to overwrite a convenience constructor the proper way?
<p>For example I want to overwrite from UIButton:</p>

<pre><code>+ (id)buttonWithType:(UIButtonType)buttonType
</code></pre>

<p>So I would do:</p>

<pre><code>+ (id)buttonWithType:(UIButtonType)buttonType {
   UIButton *button = [UIButton buttonWithType:buttonType];
   if (button != nil) {
      // do own config stuff ...
   }
   return button;
}
</code></pre>

<p>is that the right way? Or did I miss something? (yeah, I have been overwriting thousands of instance methods, but never class methods ;) )</p>
