UITableView图像在左侧[复制](UITableView image on the left hand side [duplicate])

编程入门 行业动态 更新时间:2024-10-28 03:17:57
UITableView图像在左侧[复制](UITableView image on the left hand side [duplicate])

可能重复: 将图像添加到UItableView

我想在左边的UITableView中添加图像,我怎么能添加它?

Possible Duplicate: adding images to UItableView

I want to add image in UITableView in the left hand side how could I add it?

最满意答案

尝试这个 ,

UIImageView *backgroundCellImage=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 768, 80)]; backgroundCellImage.image=[UIImage imageNamed:@"ImageName.png"]; [cell.contentView addSubview:backgroundCellImage]; [backgroundCellImage release];

Try This ,

UIImageView *backgroundCellImage=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 768, 80)]; backgroundCellImage.image=[UIImage imageNamed:@"ImageName.png"]; [cell.contentView addSubview:backgroundCellImage]; [backgroundCellImage release];

更多推荐

本文发布于:2023-07-24 20:52:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1250975.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图像   image   UITableView   left   duplicate

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!