简体   繁体   English

如何在整个应用程序中使用图片创建图片库

[英]how to create photo gallery from the pics using throughout in app

how to create photo gallery within the app from the 70 pics using throughout in app 如何在整个应用程序中使用70张图片在应用程序中创建照片库

ImageView.animationImages = [NSArray arrayWithObjects:    
                             [UIImage imageNamed:@"2a.png"],
                             [UIImage imageNamed:@"2b.png"],
                             [UIImage imageNamed:@"2c.png"],
                             nil];

Do i have to create uiimagepicker like this 我必须像这样创建uiimagepicker吗

UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.allowsEditing = YES;
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; 
[self presentModalViewController:imagePicker animated:YES];

If yes then still not clear that how it will collect all the images from throughout the app and show it as a slide show or the user can slide image one by one. 如果是,那么仍然不清楚它如何收集整个应用程序中的所有图像并将其显示为幻灯片放映方式,或者用户可以一张一张地滑动图像。

Thanks for help. 感谢帮助。

If you want to create some photo gallery apps, check out this open source sample . 如果您要创建一些相册应用程序,请查看此开源示例

Created by Michael Waterfall, which includes photo gallery from images stored on server or locally. 由Michael Waterfall创建,其中包括来自服务器或本地存储的图像的照相馆。

If you want to implement like side show, just slide the scrollView programmatically with some delay or using your own animatons. 如果您想实现像边秀一样的效果,只需以编程方式滑动scrollView稍有延迟或使用自己的动画即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM