UITableViewCell Title和Subtitle -iOS之间的空格 [英] UITableViewCell Space between Title and Subtitle -iOS
本文介绍了UITableViewCell Title和Subtitle -iOS之间的空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在UITableViewCell中增加标题和副标题之间的空间?
How can I increase the space between the title and subtitle in UITableViewCell?
推荐答案
您可以在单元格内容视图中添加两个标签,而不是设置细胞标签。根据需要调整y原点。添加heightForRowAtIndexPath将增加您的单元格高度。
You can add two labels in your cell content view instead of setting cell label. Adjust the y origin as per need. Adding heightForRowAtIndexPath will increase your cell height.
这篇关于UITableViewCell Title和Subtitle -iOS之间的空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文