title: how do I left align a button in UITableViewCell
body: <p>How do I align the table cell button to the left instead of the right? Below is the code I am using to create the UIButton. Thanks.</p>
  
  <pre><code>cell.accessoryView = [self getButton: @"icon.png"];
  
  ...
  
  - (UIButton*)getButton: (NSString*)icon {
      UIImage *image = (true) ? [UIImage   imageNamed:icon] : [UIImage imageNamed:icon];
  
      UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
      CGRect frame = CGRectMake(0.0, 0.0, image.size.width, image.size.height);
      button.frame = frame;
      [button setBackgroundImage:image forState:UIControlStateNormal];
  
      [button addTarget:self action:@selector(checkButtonTapped:event:)  forControlEvents:UIControlEventTouchUpInside];
      button.backgroundColor = [UIColor clearColor];
      return button;
  
  }
  </code></pre>