Espaciado entre celdas en UITableView con UITableViewCell personalizado
Tengo un UITableView cargando un UITableViewCell personalizado desde un archivo XIB. Todo funciona bien, pero mi diseño requiere que las celdas (todas dentro de una sola sección) tengan espacio entre ellas. ¿Alguna posibilidad de que esto se pueda hacer sin tener que elevar la altura de la fila?
como es ahora
como se supone que es
EDITAR:
Así es el código hoy.
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return [[self.cards valueForKeyPath:@"cards"] count];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
[ccTableView setBackgroundColor:[UIColor clearColor]];
cardsCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cardsCell"];
if(cell == nil){
NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"cardsCell" owner:self options:nil];
cell = [topLevelObjects objectAtIndex:0];
}
NSString *nmCard = [[self.cards valueForKeyPath:@"cards.name"] objectAtIndex:indexPath.row];
cell.descCardLabel.text = nmCard;
return cell;
}