UITableView 的 cell 默認出現在 uitableview 的第一行,如果你想自定義 UITableViewCell 與導航條間距的話,可以使用下面這行代碼
tableview.tableHeaderView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 20)]autorelease];
UITableView 的 cell 默認出現在 uitableview 的第一行,如果你想自定義 UITableViewCell 與導航條間距的話,可以使用下面這行代碼
tableview.tableHeaderView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 20)]autorelease];