Skip to content

iOS library that provides multiple image selection / iOS支持多图选择的相册

Notifications You must be signed in to change notification settings

dd2333/DDPhotoAlbum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 

Repository files navigation

DDPhotoAlbum (Deprecated)

LICENSE  CocoaPods  SUPPORT  BLOG 

github

Installation

Download DDPhotoAlbum and try out the included iPhone example apps

Usage

  • The simulator does not support the camera.

Cocoapods import:

  • 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>

Manual import:

  • Drag All files in the DDPhotoAlbum folder to project
  • Use by including the following import:
    #import "DDPhotoAlbum.h"

Open the Album

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];

About

iOS library that provides multiple image selection / iOS支持多图选择的相册

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages