So, I had a problem setting custum selectedBackgroundView inside my UITableViewCell .
My cell has a contentView , which is basically a UIView (frame = 0,80,70) with a black background and a UIImageView as a preview.
contentMode = UIViewContentModeScaleAspectFit;
It looks something like this:

Now I set selectedBackgroundView as follows:
The result is approximately the following:

Now my question is: why does selectedBackgroundView hide the black part of the contentView ?
I already tried to initialize my bgColorView frame starting with x = 80 , but that does not change anything.
I also tried to explicitly set backgroundColor of imageView to black, the same result.
What can cause this behavior?
source share