我正在开发一个应用程序,我在其中捕获图像并将图像保存到图库。之后,我打开图库,现在我想查看保存图像的全屏幻灯片放映。
使用以下代码时,只需打开图像全屏,选择并取消选项,但我需要幻灯片放映。
pickerview.allowsEditing=YES;
pickerview.sourceType=UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:pickerview animated:YES completion:nil];
答案 0 :(得分:1)
试试此代码
picturePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
picturePicker.mediaTypes =[NSArray arrayWithObject:(NSString *)kUTTypeImage];
picturePicker.allowsEditing = YES;
[self presentViewController:picturePicker animated:NO completion:nil];