---
title: "设置 UITableViewCell 与导航条间距"
author: "niCe"
date: "2010-12-31T10:43:39Z"
tags: []
categories: ["移动开发"]
slug: "uitableviewcell"
draft: false
lastmod: "2010-12-31T10:43:39Z"
id: 856595
url: "https://nice.iteye.com/blog/856595"
---

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

 

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