The line of code
cell.detailTextLabel.numberOfLines = x;
will be set to the number of lines that your cell will display (x is the number of lines to be displayed). Set to 0 if you want to remove the maximum limit and display as many lines as necessary.
source
share