How to display multiline text inside table cell in iphone?

I am new to iphone development. I parse the XML file and display the title, date, view, and summary on each row of the table. The content of the resume is large, so only the first 3 words are displayed in the cell, I increased the line height. My cell will display 3 words. How the summary should fit properly inside the cell, and the full content should be displayed. Please help me. Thank.

+3
source share
1 answer

why don't you set the "numberOfLines" property of the cell text label to 0.

just,

cell.textLabel.numberOfLines=0;

Good luck.

+6
source

Source: https://habr.com/ru/post/1732585/


All Articles