title: TextLabel and UITextField as accessoryview are overlaping each other
body: <p>I have a tableview cell in which I am adding a textfield as accessory view, but textlabel and the textfield in accessory view are overlaping each other as shown in the image. Strangest thing is that if I set the background color of the cell, it shows it over the whole cell but when I check its frame, It shows a width of 240.0. What am I missing here?
  <a href="https://i.stack.imgur.com/V6rcX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V6rcX.png" alt="Cell Snapshot"></a></p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  static NSString *CellIdentifier = @"Cell";
  SettingCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  if(cell == nil)
  {
      cell = [[SettingCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier];
  }
  
  cell.accessoryView = nil;
  cell.accessoryType = UITableViewCellAccessoryNone;
  [cell.contentView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
  
  cell.textLabel.text = nil;
  cell.detailTextLabel.text = nil;
  
  cell.textLabel.text = @"Facebook default message with image";
         UITextField* textField = [[UITextField alloc]initWithFrame:CGRectMake(0, 0, 500, 30)];
          cell.accessoryView = textField;
          textField.delegate = self;
  
  
          textField.text = facebookDefaultMessageForImage;
          textField.placeholder = @"Default message";
          textField.tag = 1;
          [textField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
  return cell;
  }
  </code></pre>