Hi all,
I'm playing around with tables. And because I wanted the cells have some 'padding' between them, I had 2 options.
-Make every row their own 'section' which then can have an defines header and footer size.
-Make the tableviewcell with an 'own' view inside, which has a backgroundcolor, and the actuall cell will have the backgroundcolor clearColor.
For less coding I used the 2nd option.
Since when I'm going to select an row, it will always be row 1 etc etc. There is a lot of coding needed to get it to work.
But now for selecting the cells, when I'm setting a color for selectedBackgroundView, it will set the color for the actuall cell and ofcourse not the view inside which I'm using as the cell with padding.
I tried to connect the variable selectedBackgroundView to the view which I'm using, but then I don't get anything in my tableview
Is there some kind of workaround?
I also tried to hardcode the frame of selectedBackgroundView, but the frame dit not change at all...
Any help will be appriciated!
p.s. I'm working with 1 section in my table and as you can guess its a custom cell with its own .xib
I'm playing around with tables. And because I wanted the cells have some 'padding' between them, I had 2 options.
-Make every row their own 'section' which then can have an defines header and footer size.
-Make the tableviewcell with an 'own' view inside, which has a backgroundcolor, and the actuall cell will have the backgroundcolor clearColor.
For less coding I used the 2nd option.
Since when I'm going to select an row, it will always be row 1 etc etc. There is a lot of coding needed to get it to work.
But now for selecting the cells, when I'm setting a color for selectedBackgroundView, it will set the color for the actuall cell and ofcourse not the view inside which I'm using as the cell with padding.
I tried to connect the variable selectedBackgroundView to the view which I'm using, but then I don't get anything in my tableview
Is there some kind of workaround?
I also tried to hardcode the frame of selectedBackgroundView, but the frame dit not change at all...
Any help will be appriciated!
p.s. I'm working with 1 section in my table and as you can guess its a custom cell with its own .xib