I’m trying to add a shadow behind my grouped UITableView with a custom background. It’s hard. I fail. I’ve been experimenting with the cell layer shadow parameters, but however I do it, the shadow ends up covering another cell on one side. I just want the shadow to appear evenly outside of the outline of each section in the tableview.
If anyone has ideas on how to solve this the easiest way, it would be much appreciated!
For future reference; in the end, I solved it by using a custom UITableView subclass which added a empty but shadowed layer in its layoutSubviews method:
ShadowTableView.h:
ShadowTableView.m:
@end