Adding subview inside cell
Im trying to add views inside custom UITableViewCells. I tr开发者_高级运维ied using the [cell.contentView addSubview] method but the views dont appear. What is it I have to do. Thanks
if you are using custom cell then go to your custom cell class and ...
UIView *contentView;
contentView =[[UIView alloc]init];
then set frames of your view...
finally
[self.contentView addSubview:contentView];
精彩评论