Download DDPhotoAlbum and try out the included iPhone example apps
- The simulator does not support the camera.
- DDPhotoAlbum is available on CocoaPods. Just add the following to your project Podfile:
pod 'DDPhotoAlbum', '~> 1.1.1'
- Use by including the following import:
#import <DDPhotoAlbum.h>
- Drag All files in the DDPhotoAlbum folder to project
- Use by including the following import:
#import "DDPhotoAlbum.h"
DDPhotoAlbumViewController *photoAlbumViewController = [[DDPhotoAlbumViewController alloc]init];
photoAlbumViewController.maxPhotos = self.maxPhotos;
photoAlbumViewController.isShowCamera = self.isShowCamera;
photoAlbumViewController.didSelectAutoBack = YES;
[photoAlbumViewController setPreLoadingImages:_thumbnailImages imageUrls:_imageUrls];
[photoAlbumViewController setDidSelectedBlock:^(NSArray *images,NSArray *thumbnailImages,NSArray *imagesUrl) {
_thumbnailImages = thumbnailImages;
_imageUrls = imagesUrl;
//handle
}];
[photoAlbumViewController setDidCancelBlock:^{
//handle
}];
[self presentViewController:photoAlbumViewController animated:YES completion:nil];