This project give a demo of calculating table view cell height on iOS7 & iOS8 using autolayout!
In order to get the correct height of a cell. You must make sure that you have set the correct constraints. Known Content Hugging
and Content Compression Resistance
is necessary. You can find that in this article.
##Reference
For more information, see this
Another demo