I have a subclass of UITableViewCell. It adds a few extra elements to the base view (via xib) ,
but It can not take effect.
cell.selectionStyle = UITableViewCellSelectionStyleBlue;
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.selectionStyle = UITableViewCellSelectionStyleGray;
This is not an iOS mistake. There's no more blue selection style since iOS 7. The only selection styles provided are UITableViewCellSelectionStyleNone and UITableViewCellSelectionStyleGray.
The cell has a default background color when selected.
In iOS 7, the selection color is no longer blue. Use UITableViewCellSelectionStyleDefault instead.
Available in iOS 2.0 and later.
If you want, you can set your own custom selection background by setting the
selectedBackgroundView property of UITableViewCell.