1

我对这个问题感到非常沮丧......当我尝试呈现 UIImagePickerController 时......它显示了图像的数量......但不是所有的图像。任何人都可以帮忙......在此处输入图像描述

UIImagePickerController *imgPickerController = [[UIImagePickerController alloc]init];

imgPickerController.delegate=self;

imgPickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

[self presentViewController:imgPickerController animated:YES completion:nil];

在此处输入图像描述

4

2 回答 2

1

你能喜欢这个吗?

UIImagePickerController *image_picker = [UIImagePickerController new];
        image_picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
        image_picker.mediaTypes = [UIImagePickerController availableMediaTypesForSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
        image_picker.delegate = self;
        [self presentModalViewController:image_picker animated:YES];
于 2013-10-28T13:14:47.983 回答
0

我已经为 UIView 添加了新的类别文件..这是问题..现在当我从我的项目中删除该类别文件时我没有那个问题...

于 2013-10-29T04:24:41.263 回答