iPhone:添加图像到分组的uitableview部分标题? [英] iPhone: add an image to grouped uitableview section header?

查看:117
本文介绍了iPhone:添加图像到分组的uitableview部分标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以通过实现 viewForHeaderInSection来改变节头的样式:





我可以创建自己的视图,并添加一个UILabel和一个UIImageView ,

解决方案

您必须创建自己的视图持有者,图片和标签,并尝试匹配标准外观。很抱歉!


I know I can change the way the section header looks by implementing viewForHeaderInSection:

The thing is I want to add a UIImageView to the right of the header text without modifying the look of the already existing label.

I can create my own view and add a UILabel and a UIImageView, but then, I'd have to setup the label color and font to match the standard look

thanks

解决方案

You're going to have to create your own view holder, image, and label, and try to match the standard look. Sorry!

这篇关于iPhone:添加图像到分组的uitableview部分标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆