首页 > 移动平台 > 详细

ios7 tableViewCell 图片显示不居中

时间:2014-08-26 13:09:26      阅读:261      评论:0      收藏:0      [点我收藏+]
@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。

 

ios7 tableViewCell 图片显示不居中

原文:http://www.cnblogs.com/yaoxc/p/3936936.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!