UIImageView加载图片,总感觉小了

[self.iconImageView1mas_makeConstraints:^(MASConstraintMaker*make) {

make.left.equalTo(self.backView).offset(GMLAYOUTRATE(19));

//make.centerX.equalTo(self.iconImageView);

make.top.equalTo(self.backView).offset(GMLAYOUTRATE(70));

make.size.mas_equalTo(CGSizeMake(GMLAYOUTRATE(13),GMLAYOUTRATE(13)));

//make.size.equalTo(self.iconImageView);

}];

之前这样总是看起来小了,

后来

[self.iconImageView1mas_makeConstraints:^(MASConstraintMaker*make) {

//make.left.equalTo(self.backView).offset(GMLAYOUTRATE(19));

make.centerX.equalTo(self.iconImageView);

make.top.equalTo(self.backView).offset(GMLAYOUTRATE(70));

make.size.mas_equalTo(CGSizeMake(GMLAYOUTRATE(26),GMLAYOUTRATE(26)));

//make.size.equalTo(self.iconImageView);

}];

才发现图片有空白边。坑死人了?无奈。

你可能感兴趣的:(UIImageView加载图片,总感觉小了)