I’m already searching for two days about this and can’t find my answer…
I have a custom uitableviewcell, then I need to implemenent custom color, when cell is selected.
cell.selectedBackgroundView.backgroundColor = [UIColor greenColor];
Doesn’t work for me. Or if it works, the background color is clear, and I don’t get whats wrong. It seems that I don’t know how to properly connect my custom cell in Interface builder. I can create a custom cell but the only thing is that I don’t know how to make the selection work. So if anyone could help me I would be really thankful. Or maybe someone knows a tutorial about this?
Thanks in advance!
Finnaly i have found the answer to my question..
I’ve made very stupid mistake..
So first thing you need to set the files owner class as NSObject to your customcell in IB,
then your uitableviewcell class as your custom cell, in my case “myCustomDisplayCell”..
Futhermore from bottom to top (views in IB), I’ve added a uiview and hooked up with cells backgroundview,
on top i’ve placed a uiview and hooked up with cells selectedbackgroundview(made view color clear)
then finnaly i placed a uilabel uiimageview, and hooked up these right.. (you can add your own things here needed for custom cells). And that’s it! Looks kind of easy now..
Thank you all for help!