couchbaselabs/CouchCocoa — pull request #7 by sas71 (2011-12-12 18:21:53+00:00)
Title: UITableViewCell customisation

Hi,

first off, this is my first Pull Request (at all) so I hope this all makes sense and works out :)

Working with the Grocery List example and trying to extend it with images, I found it a bit hard to customise the UITableViewCell with the given delegate API in the data source class CouchUITableSource. The problem was that the cell is pre-created with UITableViewCellStyleDefault and your options to extend this are limited. For example, in my case if found it difficult to add another image view to the cell's content view.

What I've done is extend the delegate API to allow overriding of tableView:cellForRowAtIndexPath: to set up your own UITableViewCell. I'm not sure if my approach is ideal but it works for me.

Hope that helps,
Sven