美文网首页
UITableViewCell中的imageView

UITableViewCell中的imageView

作者: 陈世美_ | 来源:发表于2015-08-11 17:20 被阅读141次

大小固定//自定义一个Cell

@interfaceMMCell:UITableViewCell

@end

@implementationMMCell

//重载layoutSubviews

- (void)layoutSubviews

{

UIImage*img =self.imageView.image;

self.imageView.image= [UIImageimageName:@"res/PlaceHolder.png"];

[superlayoutSubviews];

self.imageView.image= img;

}

@end

相关文章

网友评论

      本文标题:UITableViewCell中的imageView

      本文链接:https://www.haomeiwen.com/subject/wdpiqttx.html