forked from davdroman/Popsicle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDRDynamicSlideShow.h
46 lines (34 loc) · 1.46 KB
/
DRDynamicSlideShow.h
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
//
// DRDynamicSlideShow.h
// DRDynamicSlideShow
//
// Created by David Román Aguirre on 17/09/13.
// Copyright (c) 2013 David Román Aguirre. All rights reserved.
//
#import <UIKit/UIKit.h>
#pragma mark Interfaces
@interface DRDynamicSlideShowAnimation : NSObject
@property (strong, nonatomic) id subview;
@property (nonatomic) NSInteger page;
@property (strong, nonatomic) NSString * keyPath;
@property (strong, nonatomic) id fromValue;
@property (strong, nonatomic) id toValue;
@property (nonatomic) CGFloat delay;
+ (id)animationForSubview:(UIView *)subview page:(NSInteger)page keyPath:(NSString *)keyPath toValue:(id)toValue delay:(CGFloat)delay;
+ (id)animationForSubview:(UIView *)subview page:(NSInteger)page keyPath:(NSString *)keyPath fromValue:(id)fromValue toValue:(id)toValue delay:(CGFloat)delay;
@end
@interface DRDynamicSlideShow : UIScrollView <UIScrollViewDelegate> {
NSMutableArray * animations;
NSArray * currentAnimations;
NSInteger currentPage;
UITapGestureRecognizer * tapGestureRecognizer;
}
@property (readonly, nonatomic) NSInteger numberOfPages;
@property (nonatomic) BOOL scrollsPageOnTap;
@property (strong, nonatomic) void (^didReachPageBlock)(NSInteger page);
- (void)addAnimation:(DRDynamicSlideShowAnimation *)animation;
- (void)addSubview:(UIView *)subview onPage:(NSInteger)page;
// @property (nonatomic) DRDynamicSlideShowDirection direction;
// - (id)initWithOrientation:(DRDynamicSlideShowDirection)direction;
// ;)
@end