我是新的编程我怎么开发和应用我不想访问我的图像视图中的所有库图像并滑动图像并查看它。喜欢和任何我们看到所有图像的相机可以任何身体建议!
如何在我的视图中实现所有库图像并滑动它我正在实现这一点,但通过我只能访问单个图像。
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];
}
答案 0 :(得分:0)
要从本机照片应用程序获取所有照片/资源,您可以使用照片框架。您可以在此链接中找到详细的文档