//去掉頂部 self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, CGFLOAT_MIN)];//CGFLOAT_MIN爲無限接近0的浮點數 //去掉底部self.tableview.tableFooterView =[[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, CGFLOAT_MIN)];