I subclassed a UITableViewCell, then overrides the initWithStyle method.
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) { self.selectionStyle = UITableViewCellSelectionStyleNone;
msgText is a class UILabel property, and I set the text property of the label elsewhere. You can add any kind of self.contentView you like. I also set the frame for each of the subzones when I add content such as text and / or images.
source share