CombinePicker 控制器是使用 uicollection view 的图片选择器。
使用 cocoapods
pod 'CombinationPickerController'
如何使用
添加代理
<ODMCombinationPickerViewControllerDelegate>
创建并展示 ODMCombinePickerViewController
ODMCombinationPickerViewController *vc = [[ODMCombinationPickerViewController alloc] initWithCombinationPickerNib];
[vc setDelegate:self];
[self presentViewController:vc animated:YES completion:nil];
代理方法
- (void)imagePickerController:(ODMCombinationPickerViewController *)picker didFinishPickingAsset:(ALAsset *)asset;
- (void)imagePickerControllerDidCancel:(ODMCombinationPickerViewController *)picker;
自定义相机控制器
YourCameraController *cameraController = [YourCameraController new];
[vc setCameraController:cameraController];