I have a problem with iOS 8 Self Sizing Cells. I am trying to create Self Sizing cells by using this AppCoda Tutorial.
According to this tutorial I have initialised my table view:
[self.tableView registerNib:[UINib nibWithNibName:[Cell1 description] bundle:[NSBundle mainBundle]] forCellReuseIdentifier:Cell1Identifier];
[self.tableView registerNib:[UINib nibWithNibName:[Cell2 description] bundle:[NSBundle mainBundle]] forCellReuseIdentifier:Cell2Identifier];
self.tableView.estimatedRowHeight = 100.0;
self.tableView.rowHeight = UITableViewAutomaticDimension;
In each cells implementation file I have initialised a property:
self.label.numberOfLines = 0;
Also, for each cell, I have added Auto Layout constraints:
For the reason I don't know, cells height aren't changing dynamically.
Does anyone know why is that so?




lineBreakModeis set toNSLineBreakByWordWrapping. Setting it toNSLineBreakByCharWrappingor add another word just for testing might help. It's set toNSLineBreakByTruncatingTailby default (which you actually can see in the picture). - MarkusUILabelis high enough to display 2 lines of text, so it wraps text and divides it into 2 lines of text, but the height of cell is still static... - Daumantas Versockas