You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
967 B

//
// TFPhotoBrowser.h
// TFPhotoBrowser
//
// Created by zhengwenming on 2018/1/2.
// Copyright © 2018年 zhengwenming. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^DeleteBlock)(NSMutableArray *dataSource, NSUInteger currentIndex, UICollectionView *collectionView);
typedef void(^DownLoadBlock)(NSMutableArray *dataSource, UIImage *image, NSError *error);
@interface TFPhotoBrowser : UIViewController
/**
*
*/
@property (nonatomic ,strong) NSMutableArray *dataSource;
/**
* index
*/
@property (nonatomic ,assign) NSInteger currentPhotoIndex;
/**
*
*/
@property (nonatomic ,assign) BOOL downLoadNeeded;
/**
*
*/
@property (nonatomic ,assign) BOOL deleteNeeded;
/**
*
*/
@property (nonatomic ,copy) DownLoadBlock downLoadBlock;
/**
*
*/
@property (nonatomic ,copy) DeleteBlock deleteBlock;
@end