相册选择图片是原图片大小还是可以剪裁的
2017-07-07 本文已影响0人
俊俊吖
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
NSString *str = [info objectForKey:UIImagePickerControllerMediaType];
if ([str isEqualToString:(NSString *)kUTTypeImage]){
UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];//原图片
}
UIImage *image = [info UIImagePickerControllerOriginalImage]; (保持原样市的) 将 UIImagePickerControllerOriginalImage 改为UIImagePickerControllerEditedImage(可以剪切的)