title: Setting the Style of a UITableView
body: <p>I have a UITableView class that i am calling in another class    </p>
  
  <pre><code> MyPocketTableView * myPocketTableView = [[MyPocketTableView alloc]initWithFrame:CGRectMake(85, 153, 235, 250) style:UITableViewStyleGrouped]; 
  </code></pre>
  
  <p>However, the init method in the UITableViewClass does not let me do this. </p>
  
  <pre><code>@implementation MyPocketTableView
  
  - (id) initWithFrame:(CGRect)frame style:(UITableViewStyle)style {
      self = [super initWithFrame:frame];
      self = [super initWithStyle:style]
  
      if (self) {
  
          //[self setFrame:CGRectMake(85, 153, 235, 250)];
          self.dataSource = self;
          self.delegate = self;
  
      }
      return self;
  }
  </code></pre>
  
  <p>I cannot add style : (UITableViewStyle) style on to the init method definition, nor can i do the <code>self = [super initWithStyle:style]</code> because it complains saying</p>
  
  <blockquote>
    <p>No visible @interface for 'UITableView' declares the selector initWithStyle.</p>
  </blockquote>
  
  <p>The default init method that was there when the class was created was <code>- (id) initWithFrame:(CGRect)frame</code>. MyPocketTableView is a sub class of UITableView. </p>
  
  <pre><code>  @interface MyPocketTableView : UITableView &lt;UITableViewDataSource,UITableViewDelegate&gt;
  </code></pre>