如何在图像视图中滑动库图像

时间:2015-01-14 15:32:57

标签: ios objective-c

我是新的编程我怎么开发和应用我不想访问我的图像视图中的所有库图像并滑动图像并查看它。喜欢和任何我们看到所有图像的相机可以任何身体建议!

如何在我的视图中实现所有库图像并滑动它我正在实现这一点,但通过我只能访问单个图像。

picker = [[UIImagePickerController alloc]init];
     picker.delegate=self;
    [picker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
    [self presentViewController:picker animated:YES completion:NULL];

-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
    image=[info objectForKey:@"UIImagePickerControllerOriginalImage"];
    [_imageview setImage:image];
    [self dismissViewControllerAnimated:YES completion:NULL];
}

-(void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
{
    [self dismissViewControllerAnimated:YES completion:NULL];
}

1 个答案:

答案 0 :(得分:0)

要从本机照片应用程序获取所有照片/资源,您可以使用照片框架。您可以在此链接中找到详细的文档

https://developer.apple.com/library/ios/documentation/Photos/Reference/Photos_Framework/index.html#//apple_ref/doc/uid/TP40014408