我真的很沮丧这个问题...当我尝试呈现UIImagePickerController ..它显示图像的数量..但不是那些所有图像。任何人都可以帮助..
UIImagePickerController *imgPickerController = [[UIImagePickerController alloc]init];
imgPickerController.delegate=self;
imgPickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:imgPickerController animated:YES completion:nil];
答案 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添加了新的类别文件..这就是问题..当我从我的项目中删除该类别文件时,我没有这个问题......