ZZBrowserPickerViewController.h
1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// ZZBrowserPickerViewController.h
// ZZFramework
//
// Created by Yuan on 15/12/23.
// Copyright © 2015年 zzl. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ZZResourceConfig.h"
typedef NS_ENUM(NSInteger, ShowAnimation){
ShowAnimationOfPush,
ShowAnimationOfPresent
};
@class ZZBrowserPickerViewController;
@protocol ZZBrowserPickerDelegate <NSObject>
@required
-(NSInteger)zzbrowserPickerPhotoNum:(ZZBrowserPickerViewController *)controller;
-(NSArray *)zzbrowserPickerPhotoContent:(ZZBrowserPickerViewController *)controller;
@optional
-(void)zzbrowerPickerPhotoRemove:(NSInteger) indexPath;
@end
@interface ZZBrowserPickerViewController : UIViewController
@property (assign, nonatomic) id <ZZBrowserPickerDelegate> delegate;
//是否开启动画效果
@property (assign, nonatomic) BOOL isOpenAnimation;
@property (assign, nonatomic) NSInteger showAnimation;
//滚动到指定位置(滚动到那张图片,通过下面属性)
@property (strong, nonatomic) NSIndexPath *indexPath;
-(void)reloadData;
-(void)showIn:(UIViewController *)controller animation:(ShowAnimation)animation;
@end