在给UITableViewCell设置文本的时候
cell.text = @"text";
出现了如下警告
setText is deprecated (setText 已经过期)
解决办法:
cell.textLable.text = @"text";
加载图片的如下:
UIImage * image =[UIImage imageNamed:@"p.png"];
cell.imageView.image =image;
本文详细介绍了在使用UITableViewCell时遇到的setText过期警告,并提供了替代方法来解决这一问题。同时,文章还展示了如何正确加载并设置图片资源。适合iOS开发人员学习与参考。
在给UITableViewCell设置文本的时候
cell.text = @"text";
出现了如下警告
setText is deprecated (setText 已经过期)
解决办法:
cell.textLable.text = @"text";
加载图片的如下:
UIImage * image =[UIImage imageNamed:@"p.png"];
cell.imageView.image =image;
1904

被折叠的 条评论
为什么被折叠?