I´m new to iOS development and I´m losing so much time for trying something that should be easy I think. I tried to increase the height of my row, which worked, but the problem is that the image increases in size too. So I'm searching for a solution like adding a margin/padding to my row with the images still the same size, not like on the left photo? The right photo is a good example of what I'm trying to explain.
Does someone have a good example of code for this? Thank you! :)
Code for TableView:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"myCell" forIndexPath:indexPath];
Personen *myPersoon = self.personen[indexPath.row];
// Configure the cell...
cell.imageView.image = [UIImage imageNamed:myPersoon.foto];
cell.textLabel.text = [NSString stringWithFormat:@"%@ %@",
myPersoon.naam, myPersoon.voornaam];
return cell;
}