图片是网络获取的图片:
//剪裁图片
NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:[model.coverImageArray objectAtIndex:0]]];
UIImage *coverImage = [UIImage imageWithData:data];
CGSize coverSize = self.coverImageView.frame.size;
CGRect coverRect = CGRectMake(0, 0, coverSize.width, coverSize.height);
CGImageRef cgImage = CGImageCreateWithImageInRect([coverImage CGImage], coverRect);
self.coverImageView.image = [UIImage imageWithCGImage:cgImage];
CGImageRelease(cgImage);
[self.coverImageView setImageWithURL:[NSURL URLWithString:[model.coverImageArray firstObject]] placeholderImage:nil];