title: Position UITableCell image to left border
body: <p>I have a prototype cell with a UIImageView. </p>
  
  <p>I would like to position it exactly to the left edge of the screen (no space in between like it is by default). </p>
  
  <p>First picture is what I have (default tableView and cells), second is what I try to do. </p>
  
  <p><img src="https://i.stack.imgur.com/aVDVV.png" alt="enter image description here"></p>
  
  <p>No matter what I try (<code>frame</code>, <code>bounds</code>, <code>CGAffineTransform</code> on <code>cell.imageView</code>) there is always a space between the edge and the image, it's like iOS prevent this behavior. </p>
  
  <p>I'm not using AutoLayout and would like to do this programmatically.  </p>
  
  <p><strong>Solution</strong> </p>
  
  <pre><code>#import "ResultCell.h"
  
  @implementation ResultCell 
  
  -(void) layoutSubviews {
  [super layoutSubviews];
  self.imageView.frame = CGRectMake(-10,0,10,10);
  }
  
  @end
  </code></pre>
  
  <p>See @matt answer for more details. </p>