QQAlbum 图片、视频多选框架

程序名称:QQAlbum

授权协议: GPL

操作系统: 跨平台

开发语言: Objective-C

QQAlbum 介绍

QQAlbum

项目介绍

  • 该框架为一个类似QQ多选照片(支持视频)的框架

  • 1.支持多选照片(多选照片数量及最大多选数可设置)

  • 2.支持滑动单选照片

  • 3.[常用Api] (#常用Api)

  • 4.[使用方法] (#使用方法)

常用Api

NS_ASSUME_NONNULL_BEGIN

@interface AlbumView : UIView

@property (nonatomic, assign)id<AlbumViewDelegate>delegate;
//选择图片最大数
@property (nonatomic, assign) NSUInteger maxItem;

/**
*   @author sender, 16-06-14 14:06:53
*
*   TODO:发送多选图片
*
*   @since 1.0
*/
- (void)sendSelectImage;

NS_ASSUME_NONNULL_END

@end

使用方法

#import "AlbumView.h"

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.

self.albumView = [[AlbumView alloc] initWithFrame:CGRectMake(0, 150, self.view.bounds.size.width, 200)];
self.albumView.delegate = self;
self.albumView.maxItem = 3;
[self.view addSubview:self.albumView];
}

/**
*   @author sender, 16-06-14 14:06:11
*
*   TODO:选择的图片
*
*   @param images   图片数组
*
*   @since 1.0
*/
- (void)selectedImages:(NSArray *)images{
    NSLog(@"%@",images);
}

/**
*   @author sender, 16-06-14 14:06:11
*
*   TODO:已经选择的图片数量
*
*   @param count    图片数量
*
*   @since 1.0
*/
- (void)didSelectCount:(NSUInteger)count{
    NSLog(@"已经选择%lu张",(unsigned long)count);
}

QQAlbum 官网

https://github.com/sfldzh/QQAlbum

相关编程语言

Pacman 是一个软件包管理器, 作为 ArchLinux 发行版...
Smb4K 是KDE下的网络共享浏览器 更多屏幕截图请看:...
Wine (“Wine Is Not an Emulator” 的首字母缩写)...
虚拟桌面软件,可管理最多9个虚拟桌面,你可以用热键...
UNetbootin (Universal Netboot Installer)为一种跨...
Cobbler 可以用来快速建立 Linux 网络安装环境,它已...