| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // PickerViewController.h
- // DKAssetsPickerDemo
- //
- // Copyright (c) 2014年 com.zixue101.www. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- // 回调
- typedef void(^callBackBlock)(id obj);
- // 状态组
- typedef NS_ENUM(NSInteger , PickerViewShowStatus) {
- PickerViewShowStatusGroup = 0, // default groups .
- PickerViewShowStatusCameraRoll ,
- PickerViewShowStatusSavePhotos ,
- PickerViewShowStatusPhotoStream ,
- PickerViewShowStatusVideo,
- };
- @protocol DKPhotoPickerViewControllerDelegate <NSObject>
- /**
- * 返回所有的Asstes对象
- */
- - (void) pickerViewControllerDoneAsstes : (NSArray *) assets;
- @end
- @interface DKPhotoPickerViewController : UIViewController
- // @optional
- @property (nonatomic , weak) id<DKPhotoPickerViewControllerDelegate> delegate;
- // 决定你是否需要push到内容控制器, 默认显示组
- @property (nonatomic , assign) PickerViewShowStatus status;
- // 可以用代理来返回值或者用block来返回值
- @property (nonatomic , copy) callBackBlock callBack;
- // 每次选择图片的最小数, 默认与最大数是9
- @property (nonatomic , assign) NSInteger minCount;
- @property (nonatomic , assign) NSInteger cameraCount;
- // 记录选中的值
- @property (strong,nonatomic) NSArray *selectPickers;
- // @function
- // 展示控制器
- - (void)show;
- @end
|