title: Offsetting UIButton frames in a tableview row
body: <p>Inside my cellForRowAtIndexPath method, I would like to dynamically create some buttons and place them next to each other in the cells.  The problem I'm running into is that the sizeToFit method always puts the x coordinate at the 0 position.  Is there a way to offset the position to put it next to the previous button?</p>
  
  <p>Instead of this: <img src="https://i.stack.imgur.com/4LEaJ.png" alt="Desired effect">.  I get this: <img src="https://i.stack.imgur.com/Jb6j5.png" alt="Not desired"></p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
  
  UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:@"cell"];
  if (cell == nil) {
      cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault 
                                     reuseIdentifier:@"cell"] autorelease];
      cell.accessoryType = UITableViewCellAccessoryNone;
  
      if ([indexPath section] == 0) {
          UIButton *buttonClean = [UIButton buttonWithType:UIButtonTypeRoundedRect];
          [buttonClean addTarget:self 
                     action:@selector(aMethod:)
           forControlEvents:UIControlEventTouchDown];
          [buttonClean setTitle:@"Clean Cup" forState:UIControlStateNormal];
          [buttonClean sizeToFit];
          [cell addSubview:buttonClean];
  
          UIButton *buttonAroma = [UIButton buttonWithType:UIButtonTypeRoundedRect];
          [buttonAroma addTarget:self 
                     action:@selector(aMethod:)
           forControlEvents:UIControlEventTouchDown];
          [buttonAroma setTitle:@"Aroma" forState:UIControlStateNormal];
          [buttonAroma sizeToFit];
          [cell addSubview:buttonAroma];
  </code></pre>