####【iOS】圖片裁剪
UIImage *imageTop=[UIImage imageNamed:@"1111.jpg"];
//根據(jù)創(chuàng)建的image 進(jìn)行區(qū)域裁剪(關(guān)鍵代碼)
CGImageRef refTopImg = CGImageCreateWithImageInRect(imageTop.CGImage, CGRectMake(0, 0, imageTop.size.width, imageTop.size.height/2));
_topImageView =[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 375, 667/2)];
_topImageView.image =[UIImage imageWithCGImage:refTopImg];
[self.view addSubview:_topImageView];
[Demo地址](https://github.com/joealzhou/cutImage)