table view . estimatedrowheight = 0;
table view . estimatedsectionheaderheight = 0;
table view . estimatedsectionfooterheight = 0;
In iOS 1 1, the table view uses the estimated height by default. This means that contentSize is only an initial estimate. If you need to use contentSize, you can disable the estimated height by setting three estimated height attributes to zero:
table view . estimatedrowheight = 0;
table view . estimatedsectionheaderheight = 0;
table view . estimatedsectionfooterheight = 0;