How to display a text multilined inside a cell of a table in iphone?

戏子无情 提交于 2019-12-10 19:52:41

问题


I am new to iphone development.I am parsing a xml file and displaying the title, date, view and summary in each row of a table.The contents of summary is big ,so only first 3 words are displayed in the cell. I increased the height of the row.Still 3 words are displayed in my cell.How summary should fit properly inside the cell and full content should be displayed.Please help me out.Thanks.


回答1:


why dont you set the "numberOfLines" property of the text label of a cell to 0.

just like this,

cell.textLabel.numberOfLines=0;

Good Luck.



来源:https://stackoverflow.com/questions/2253982/how-to-display-a-text-multilined-inside-a-cell-of-a-table-in-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!