title: how to get the frame of the label which is in the view in table view cell in ios
body: <p>I have used the following code to dynamically change the row height in ios. But the height is too high. I dont know where i made mistake. My code is as follows:</p>
  
  <pre><code>-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
  if(!self.customCell){
      self.customCell = [self.goalDetailsTableview dequeueReusableCellWithIdentifier:@"GoalDetailsCell"];
  }
  
  NSMutableDictionary *cellData = [self.databaseCall transactionFromDatabase:indexPath.row goalId:self.goalId andStageId:self.stageId];
  //Cell Layout
  self.customCell.tipsDescription.text = [cellData objectForKey:@"tipsDescription"];
  [self.customCell.tipsDescription sizeToFit];
  //Height of cell
  float height = (CGRectGetMaxY(self.customCell.tipsDescription.frame) + 20);
  
  return height;
  }
  </code></pre>
  
  <p>Note: <code>tipsDescription</code> is a <code>UILabel</code> inside the <code>UIView</code> which is kept inside the <code>UITableViewCell</code>.</p>