ITeye博客

设置 UITableViewCell 与导航条间距

niCe · 2010-12-31 10:43 · 界面相关 · 移动开发 · Markdown

UITableView 的 cell 默认出现在 uitableview 的第一行,如果你想自定义 UITableViewCell 与导航条间距的话,可以使用下面这行代码

 

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。