图片选择器 - CBPic2ker

2017-05-22      187      Objective-C
项目简介

中文介绍,请点击 处。

Effect

Features

  • Cool
  • Smooth
  • Face Recognition

Requirements

  • iOS 8.0

Installation

CBPic2ker is available through CocoaPods . To install it, simply add the following line to your Podfile:

pod "CBPic2ker"

Don't forget the Privacy Description ininfo.plist.

Usage

Import

#import "CBPic2ker.h"

Call

CBPhotoSelecterController *controller = [[CBPhotoSelecterController alloc] initWithDelegate:self];
controller.columnNumber = 4;
controller.maxSlectedImagesCount = 5;
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:controller];
[self presentViewController:nav animated:YES completion:nil];

Delegate

- (void)photoSelecterController:(CBPhotoSelecterController *)pickerController sourceAsset:(NSArray *)sourceAsset {
	/...
}
- (void)photoSelecterDidCancelWithController:(CBPhotoSelecterController *)pickerController {
   /...
}