My current project\'s UITableViewCell behavior is baffling me. I have a fairly straightforward subclass of UITableViewCell. It adds a few extra elements to the base view (vi
I created a UITableViewCell category/extension that allows you to turn on and off this transparency "feature".
Install it via CocoaPods by adding the following line to your Podfile:
pod 'KeepBackgroundCell'
Swift
let cell =
cell.keepSubviewBackground = true // Turn transparency "feature" off
cell.keepSubviewBackground = false // Leave transparency "feature" on
Objective-C
UITableViewCell* cell =
cell.keepSubviewBackground = YES; // Turn transparency "feature" off
cell.keepSubviewBackground = NO; // Leave transparency "feature" on