一行代码设置 UITableViewCell 与导航条间距

来源:互联网 发布:当下最流行的网络歌曲 编辑:程序博客网 时间:2024/05/29 10:18
一行代码设置 UITableViewCell 与导航条间距 
UITableView 的 cell 默认出现在 uitableview 的第一行,如果你想自定义 UITableViewCell 与导航条间距的话,可以使用下面这行代码
 

 tableview.tableHeaderView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 20)]autorelease];