iPhone: drawRect in UiTableViewCells
I'm am trying to optimise drawing UITableViewCells, in which the sample in TableViewSuite says to do direct drawing, but no examples of how.
I've tried this in my custom UITableViewCell class, but nothing appears.
- (void)drawRect:(CGRect)rect {
[[UIColor blackColor] set];
[storyTitle drawInRect:CGRectMake(boundsX, CONTROL_TWEENING, titleWidth, STORY TITLEHEIGHT) withFont:[UIFont systemFontOfSize:18]];
}
(storyTitle being a NSString object)
What am I missing here? (the above drawInRect method worked in one of my other views)