I used the following code to change the cell height dynamically. But it does not show anything. Can anyone help me to do that.

```
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    if(!self.customCell){
        self.customCell = [self.tableView dequeueReusableCellWithIdentifier:@"CustomCell"];
    }

    //Cell configuration
    self.customCell.title.text = vendor[indexPath.row];

    int quoteIndex = indexPath.row % [vendor count];
    self.customCell.description.text = message[quoteIndex];

    //Cell Layout
    [self.customCell layoutIfNeeded];

    //Height of cell
    CGFloat height = [self.customCell systemLayoutSizeFittingSize:UILayoutFittingCompressedSize].height;
    //    CGFloat height = 240;

    return height;
}

```