Q:

Plain UITableView with Grouped cells

I'm trying to create a UITableView with headers that behave like a Plain UITableView (i.e. the float at the top until they are displaced by the next header and so on...
But the cells themselves will have a Grouped look to them. 
I've set the TableViewStyle to UITableViewStylePlain to get the correct behaviour of the header. 
Now, I'm thinking my only option is to create images to use as the background of my own custom cells. 
I will need a top, bottom, middle and single image that will have rounded corners to cover all the possibilities. 
Is there another way of doing this? 

A:

You already wrote option A).  You can also go the opposite way (without the need of images, but some more logic):

Use UITableViewStyleGrouped
Add one floating header view as a seperate view on top of the tableView
Set the UITableViewDelegate
Setup the header views via the delegate
Use scrollViewDidScroll: (the tableView delegate also delegates the scrollViewDelegate) and check which section is the top most section currently, update the floating header to its contents and update the position of the floating header to scrollView.contentOffset

