just had to replace initWithFrame:resuseIdentifier with the following.
- (id)initWithStyle:(UITableViewCellStyle)style
reuseIdentifier:(NSString *)reuseIdentifier
{
if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
{
// you might want to add the UIView to [self contentView]
// so that in edit's the cell's content will be automatically adjusted.
ABTableViewCellView *myUIView = [[ABTableViewCellView alloc] initWithFrame:CGRectZero];
myUIView.opaque = YES;
contentViewForCell = myUIView;
[self addSubview:myUIView];
[myUIView release];
}
return self;
}
Also, apple has an example as Loren points out but they use initWithStyle:reuseIdentifier
http://developer.apple.com/iphone/library/samplecode/TableViewSuite/Introduction/Intro.html