【发布时间】:2016-01-13 05:17:51
【问题描述】:
我正在开发一个 iPhone 应用程序。我从我的应用程序语法上打开画廊,它工作正常,但目前正在显示专辑,但我希望显示所有图像(不是所有专辑)。那么有人可以帮助我实现这一目标吗?或者有没有可能?
我的代码是:
UIAlertAction *Gallery = [UIAlertAction actionWithTitle:@"Add Existing Photo"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action)
{
[alertcontroller dismissViewControllerAnimated:YES completion:nil];
//
self.multipleImagePicker = [[RPMultipleImagePickerViewController alloc] init];
self.multipleImagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
// UIImagePickerController initialization
self.picker.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeImage];
// Photo Library
self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:self.picker animated:YES completion:nil];
}];
【问题讨论】:
标签: objective-c iphone uiimagepickercontroller