开发者

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜