CombinePicker 控制器 0.0.92

CombinePicker 控制器 0.0.92

测试已测试
语言语言 Obj-CObjective C
许可 MIT
发布最后发布2014年12月

Nut Hancharoernkit 维护。



  • 作者:
  • Opendream

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