Hi I am trying to dynamically change my row height based on textlabel and detailtextlabel.
Following is my code:
NSString *title = [NSString stringWithFormat:@"%@%@%@",_note.committeeStaffName,@" - ",_note.dateCreated];
cell.textLabel.text = title;
cell.detailTextLabel.text = _note.note;
I am trying to adjust the height of row of a table based on the textLabel and detailTextLabel. The textLabel doesnt exceed one row. The detailTextLabel contains large texts of varying length. I have read several examples of the delegate method heightForRowAtIndexPath but none of them clearly states what has to be done in the method heightForRowAtIndexPath and what code should go in cellForRowAtIndexPath. Can anyone please clearly explain what code should go in the two method heightForRowAtIndexPath and cellForRowAtIndexPath to adjust the height of table row based on the content which includes textLabel and detailTextLabel.