title: how to set UIButton type in UIButton Subclass
body: <p>I am subclassing the UIButton, what i want is to set the button type to Round Rect.</p>
  
  <p>Button.h</p>
  
  <pre><code>@interface Button : UIButton {}
      - (void)initialize;
  @end
  </code></pre>
  
  <p>Button.m</p>
  
  <pre><code>@implementation Button
  
  - (id)initWithFrame:(CGRect)frame
  {
      self = [super initWithFrame:frame];
      if (self) {
          [self initialize];
      }
      return self;
  }
  
  
  -(id)initWithCoder:(NSCoder *)aDecoder {
      self = [super initWithCoder:aDecoder];
      if(self){
          [self initialize];
      }
      return self;
  }
  
  - (void)initialize
  {
      self.titleLabel.font = [UIFont systemFontOfSize:20];
      self.titleLabel.textColor = [UIColor redColor];
      self.titleLabel.textAlignment = UITextAlignmentCenter;
     //[UIButton buttonWithType:UIButtonTypeRoundedRect];
  }
  
  @end
  </code></pre>
  
  <p>Here i tried <code>[UIButton buttonWithType:UIButtonTypeRoundedRect]</code> but it doesn't work. Can anyone suggest how to make it work?</p>
  
  <p>I know in many previous post it has been said that Subclassing UIButton is not recommended, but the fact that in Developer's Docs there is no mention about NOT subclassing it.</p>