如何在 iPhone 中的表格单元格内显示多行文本?
我是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么不将单元格文本标签的“numberOfLines”属性设置为 0。
就像这样,
祝你好运。
why dont you set the "numberOfLines" property of the text label of a cell to 0.
just like this,
Good Luck.