在iphone6上,重写cell,在
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
里,cell的宽度是320,而iphone6宽度是375,但在-(void)layoutSubviews里cell宽度是375,所以此时,要在-(void)layoutSubviews方法上重新写控件frame。 注意,在重写-(void)layoutSubviews方法时一定要记得写[super layoutSubviews];
在iphone6上,重写cell,cell里的控件获取高度是320
原文:http://5828666.blog.51cto.com/5818666/1613893