Using the simulator iOS 8.3 and Xcode 6.3.2.
I use the self-tuning cell technique in iOS 8, and it works terribly when the cell does not have an additional view, but it breaks when the cell has an additional view. I set label limits inside the cell:

Then I use estimatedRowHeight and set rowHeight to UITableViewAutomaticDimension (here I omit tableView:numberOfRowsInSection: but it just returns 3 for this example):
@implementation MyTableViewController - (void)viewDidLoad { [super viewDidLoad]; self.tableView.estimatedRowHeight = 44.0f; self.tableView.rowHeight = UITableViewAutomaticDimension; } ... - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { MyCell *cell = (MyCell *)[tableView dequeueReusableCellWithIdentifier:@"myCell" forIndexPath:indexPath]; cell.titleLabel.text = @"Test comment Test comment Test comment Test comment Test comment Test comment Test comment Test comment Test comment Test comment Test comment "; return cell; } @end
And bam, everything looks great:

But when I add a helper view to the Storyboard without changing any code:

the first cell goes to hell. The Xcode view debugger tells me that the label height is 1785 points, and I had to use gif to show it here:

I notice that the other two cells are sized. I also note that when I rotate the simulator, the first cell changes correctly, including after it rotates back to the portrait.
Does anyone know why an accessory looks so bad, and what can I do to fix it? A sample project is available at http://github.com/UberJason/SelfSizingNightmare .
ios iphone uitableview ios8
Uberjason
source share