Skip to content

照片选择器,适用于一次性选择多张照片,简单易用,使用PhotoKit,只支持iOS8+

License

Notifications You must be signed in to change notification settings

ltimon/TTImagePicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TTImagePicker

照片选择器,适用于一次性选择多张照片,简单易用,使用PhotoKit,只支持iOS8+

  • 用法

1.将TTImagePicker文件拷贝到工程中

2.导入头文件

#import "TTPhotoPickerController.h"

3.直接初始化即可

TTPhotoPickerController * vc = [[TTPhotoPickerController alloc] initWithComplete:^(NSArray *images) {
        //选择照片之后的回调  images为选择的图片数组
        //your code
    }];
[self presentViewController:vc animated:YES completion:nil];
//如果要设置最大的选取照片数则对maxPhotoNum进行赋值 ,不赋值的话,默认最大选择数为6张
vc.maxPhotoNum = 3;

About

照片选择器,适用于一次性选择多张照片,简单易用,使用PhotoKit,只支持iOS8+

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published