當(dāng)UITableViewCell 中有圖片又網(wǎng)絡(luò)請(qǐng)求后圖片是長(zhǎng)方形的捆愁,需要顯示一小塊沛厨,然后設(shè)置了圖片的?UIImageView? 的UIViewContentModeScaleAspectFill 屬性谓罗,但是設(shè)置完之后發(fā)現(xiàn)圖片超出去了孔厉,
需要設(shè)置UIImageView.clipsToBounds=YES;
今天因?yàn)閏ell的image問題弄了好久冯凹,終于找到方案
轉(zhuǎn)自原博:http://blog.csdn.net/zhuweideng/article/details/52120579