ios7 tableViewCell 图片显示不居中
时间:2014-08-26 13:09:26
收藏:0
阅读:261
@interface MyProfileViewCell : UITableViewCell @end @implementation MyProfileViewCell - (void)layoutSubviews { [super layoutSubviews]; CGRect frame = self.imageView.frame; CGFloat y = frame.origin.y; y += 1; frame.origin.y = y; self.imageView.frame = frame; } @end
重写layoutSubviews方法,调整imageView的frame。
原文:http://www.cnblogs.com/yaoxc/p/3936936.html
评论(0)