Adding a UIView to a UITableViewCell via cell.contentView
- by Robert Eisinger
I have a class called GraphView that extends UIView that basically draws a small little line chart. I need one of these graphs at the top of each section in my UITableView. So I tried by creating a separate cell at the top of one of my sections and then on that cell I did:
[cell.contentView addSubview:graphView];
[graphView release];
But when I…