存在时UIImagePickerController问题

时间:2013-10-28 12:58:00

标签: ios iphone objective-c uiimagepickercontroller

我真的很沮丧这个问题...当我尝试呈现UIImagePickerController ..它显示图像的数量..但不是那些所有图像。任何人都可以帮助.. enter image description here

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

imgPickerController.delegate=self;

imgPickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

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

enter image description here

2 个答案:

答案 0 :(得分: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];

答案 1 :(得分:0)

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