如何打开相机胶卷和幻灯片显示保存的照片

时间:2014-08-27 11:42:27

标签: ios objective-c iphone xcode ios7.1

我正在开发一个应用程序,我在其中捕获图像并将图像保存到图库。之后,我打开图库,现在我想查看保存图像的全屏幻灯片放映。

使用以下代码时,只需打开图像全屏,选择并取消选项,但我需要幻灯片放映。

pickerview.allowsEditing=YES; 

pickerview.sourceType=UIImagePickerControllerSourceTypePhotoLibrary; 

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

1 个答案:

答案 0 :(得分:1)

试试此代码

picturePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
picturePicker.mediaTypes =[NSArray arrayWithObject:(NSString *)kUTTypeImage];
picturePicker.allowsEditing = YES;

[self presentViewController:picturePicker animated:NO completion:nil];