1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- //
- // Collection_Image.h
- // 乐销
- //
- // Created by 隋林栋 on 2017/1/9.
- // Copyright © 2017年 ping. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- //上传图片
- #import "UIView+SelectImageView.h"
- #import "XG_AssetPickerController.h"
- @interface Collection_Image : UIView<XG_AssetPickerControllerDelegate,UICollectionViewDelegate,UICollectionViewDataSource>
- #pragma mark property datas
- @property (nonatomic, strong) NSMutableArray *aryDatas;
- @property (nonatomic, strong) UICollectionView *collectionView;
- @property (nonatomic, strong) void(^blockUpComplete)(NSMutableArray *);
- @property (nonatomic, strong) NSMutableArray<XG_AssetModel *> *assets;
- @property (nonatomic, strong) void(^blockDelComplete)(NSMutableArray *);
- @property (nonatomic, strong) NSMutableArray *aryPhoto;
- //@property (nonatomic, assign) ENUM_UPIMAGE_TYPE upImageType;
- #pragma mark property can change the view
- /**
- if is edit the first is camera,default true
- */
- @property (nonatomic, assign) BOOL isEditing;
- /**
- show title bottom of collection cell,default false
- */
- @property (nonatomic, assign) BOOL isShowTitleBottom;
- /**
- the collection slide orientation,default is horizon
- */
- @property (nonatomic, assign) UICollectionViewScrollDirection scrollDirection;
- /**
- default CollectionImageCell, if change cell will exchange
- */
- @property (nonatomic, strong) NSString *collectionCellName;
- @property (nonatomic, strong) NSString *imgName;
- #pragma mark init
- - (instancetype)initWithConfig:(BOOL)config;
- #pragma mari init
- - (void)configView;
- #pragma mark 刷新cell
- - (void)resetWithAry:(NSMutableArray *)aryDatas;
- #pragma mark 显示选中的图片
- - (void)showSelectImage;
- -(void)resetView;
- @end
|