开发者

titleForHeaderInSection in multiple lines (long text)

开发者 https://www.devze.com 2023-02-16 13:57 出处:网络
I want to display a header title for a gr开发者_StackOverflowouped table, but it is only displaying in one line. I am not sure if this is possible, but a table cell can be displayed in multiple lines,

I want to display a header title for a gr开发者_StackOverflowouped table, but it is only displaying in one line. I am not sure if this is possible, but a table cell can be displayed in multiple lines, but I do not know if the header also.

Thanks in advance!


You can create your own custom view with as many lines as you like and implement tableView:viewForHeaderInSection: to return the custom view instead of tableView:titleForHeaderInSection.

0

精彩评论

暂无评论...
验证码 换一张
取 消