- (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(可以剪切的)
网友评论