1.先获取tableHeaderView
2.设置它的frame
3.将该view设置回tableview
UIView *view=tableView. tableHeaderView; view.frame=newFrame; tableView. tableHeaderView =view;
ref:http://www.cocoachina.com/bbs/read.php?tid-115251-page-1.html
时间: 2024-10-13 16:01:24
1.先获取tableHeaderView
2.设置它的frame
3.将该view设置回tableview
UIView *view=tableView. tableHeaderView; view.frame=newFrame; tableView. tableHeaderView =view;
ref:http://www.cocoachina.com/bbs/read.php?tid-115251-page-1.html