I have problem with UITableViewCell, I want to make the dynamical height of each cell, I tried code bellow:
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    if ([[tableView cellForRowAtIndexPath:indexPath] isKindOfClass:[CommentTableViewCell class]]) {
        CommentTableViewCell* cell = (CommentTableViewCell*)[tableView cellForRowAtIndexPath:indexPath];
        return cell.descriptionText.frame.size.height + 20.0;
    }
   return 44.0;
}
But I have error, I have screenshot of this error https://drive.google.com/file/d/0Bz4j1JqQ0tI4T1Jsb2YxWnBvSTA/view?usp=sharing
Then I use answer of Mohit tomar in this page: Change UITableView height dynamically
In result of it: https://drive.google.com/file/d/0Bz4j1JqQ0tI4R0t4M0k5THdxNEk/view?usp=sharing
 
     
     
     
     
    