Espaçamento entre células no UITableView com o Custom UITableViewCell
Eu tenho um UITableView carregando um UITableViewCell personalizado de um arquivo XIB. Tudo está funcionando bem, mas meu layout requer que as células (todas dentro de uma única seção) tenham espaçamento entre elas. Alguma chance de isso poder ser feito sem ter que aumentar a altura do ROW?
como está agora
como é suposta ser
EDITAR:
é assim que o código é hoje
- (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;
}