How to provide an own contentView for using -drawRect?

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-04-21T15:32:44Z Indexed on 2010/04/21 15:33 UTC
Read the original article Hit count: 338

Filed under:
|

I want to use -drawRect: in an UITableViewCell subclass but it is covered by contentView. So the best option seems to be that I make a UIView subclass with my -drawRect: code and use that as contentView. But how could I feed my UITableViewCell subclass with that contentView?

UITableViewCell creates that on its own when the contentView property is accessed. Would I simply override the getter method and then provide my own view there?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview