如何在 iPhone 中的表格单元格内显示多行文本?

发布于 2024-08-21 12:25:54 字数 137 浏览 3 评论 0原文

我是 iPhone 开发新手。我正在解析 xml 文件并在表格的每一行中显示标题、日期、视图和摘要。摘要的内容很大,因此单元格中只显示前 3 个单词。我增加了行的高度。我的单元格中仍然显示 3 个单词。摘要应如何正确适合单元格并应显示完整内容。请帮助我。谢谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

日裸衫吸 2024-08-28 12:25:54

为什么不将单元格文本标签的“numberOfLines”属性设置为 0。

就像这样,

cell.textLabel.numberOfLines=0;

祝你好运。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文