title: Change width of TableView or TableViewCell
body: <p>Hey everybody :) i try to change the width of my cells so there is a little space between the cells and the tableview border. I tried everything i could found here on stackoverflow, but without success.</p>
  
  <p>I created the tableview with the interface builder, so first i simple tried to set the tableview size to "freeform" and dragged the width to 300.0f, but nothing happenend. Than i tried to do it programmatically in my "viewDidLoad" with:</p>
  
  <pre><code>self.tableView.frame = CGRectMake(10.0f, self.tableView.frame.origin.y, 300.0f, self.tableView.frame.size.height);
  </code></pre>
  
  <p>but here also nothing happens.... than i tried to change the cells directly with:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
  
  GTNewsCustomCell *newsCell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier1];
  
  newsCell.contentView.frame = CGRectMake(10.0f, 0, 300, newsCell.frame.size.height);
  </code></pre>
  
  <p>}</p>
  
  <p>but same Problem here....any ideas what I missing?</p>
  
  <p><strong>EDIT:</strong> Another Solution for this Problem is to change the frame of the Custom Cell with:</p>
  
  <pre><code>- (void)setFrame:(CGRect)frame {
      frame.origin.x += inset;
      frame.size.width -= 2 * inset;
      [super setFrame:frame];
  }
  </code></pre>