使tableVIew的头视图使表示图滚动,需要使用设置tableView的分组样式
_tableView
= [[UITableView
alloc]
initWithFrame:self.view.bounds
style:UITableViewStyleGrouped];
如果分组为一组,直接自定义头视图,然后设置为tableView的headerView,
如果为多组,某些组需要头视图,某些组不需要,需要头视图的正常设置头视图高度,不需要的返回0.01,如果返回nil,会被系统无视,然后返回一个默认高度
iOS:使头视图随表视图滚动
原文:http://blog.csdn.net/u013243469/article/details/45816985