Adding a subview to UITableCellView

Posted by hanno on Stack Overflow See other posts from Stack Overflow or by hanno
Published on 2010-04-07T19:19:09Z Indexed on 2010/04/07 19:23 UTC
Read the original article Hit count: 542

I want to add a subview to my UITableCellView subclass. However, non of the provided views in the class seem to be able to do exactly what I was looking for.

I basically want to add my own background view, filling the whole cell. However, if I replace the backgroundView, the style from the grouped table view layout isn't displayed anymore. If I add a subview to backgroundView, the subview is not shown at all. If I add a subview to the contentView, I can't draw behind the accessory icon.

What am I missing?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk