UIGraphicsBeginImageContext(size); [image drawInRect:CGRectMake(0, 0, size.width, size.height)]; UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); 你改变写size就知道了
那个框用原生的方法似乎是没法变成矩形的。可以考虑用第三方库,比如PEPhotoCropEditor