iPhone - Is it ok to override UITableViewCell setSelected:animated

Posted by Brian on Stack Overflow See other posts from Stack Overflow or by Brian
Published on 2010-04-08T19:49:14Z Indexed on 2010/04/08 19:53 UTC
Read the original article Hit count: 467

I am drawing custom UITableViewCells. My cells are opaque and are completely drawn in the drawRect of the cell to help with performance. I want to handle the look of a selected cell myself. If I don't, then the contents of my cell is covered up by the selectedBackgroundView that is added. Is it common or acceptable to override the setSelected:animated method of my cell so this is done properly. I guess if I did that, then I would not call the super's setSelected method since I would be handling how the cell will show that its selected. I would also have to set the selected property of the cell.

Any help would be great. Thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uikit