-
Notifications
You must be signed in to change notification settings - Fork 0
/
EAIntroView.h
executable file
·43 lines (34 loc) · 1.32 KB
/
EAIntroView.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
//
// EAIntroView.h
// EAIntroView
//
// Copyright (c) 2013 Evgeny Aleksandrov.
//
#import <UIKit/UIKit.h>
#import "EAIntroPage.h"
@protocol EAIntroDelegate
@optional
- (void)introDidFinish;
@end
@interface EAIntroView : UIView <UIScrollViewDelegate>
@property (nonatomic, assign) id<EAIntroDelegate> delegate;
// titleView Y position - from top of the screen
// pageControl Y position - from bottom of the screen
@property (nonatomic, assign) bool swipeToExit;
@property (nonatomic, assign) bool hideOffscreenPages;
@property (nonatomic, retain) UIImage *bgImage;
@property (nonatomic, retain) UIView *titleView;
@property (nonatomic, assign) CGFloat titleViewY;
@property (nonatomic, retain) UIPageControl *pageControl;
@property (nonatomic, assign) CGFloat pageControlY;
@property (nonatomic, retain) UIButton *skipButton;
@property (nonatomic, assign) NSInteger currentPageIndex;
@property (nonatomic, retain) UIScrollView *scrollView;
@property (nonatomic, retain) UIImageView *bgImageView;
@property (nonatomic, retain) UIImageView *pageBgBack;
@property (nonatomic, retain) UIImageView *pageBgFront;
@property (nonatomic, retain) NSArray *pages;
- (id)initWithFrame:(CGRect)frame andPages:(NSArray *)pagesArray;
- (void)showInView:(UIView *)view animateDuration:(CGFloat)duration;
- (void)hideWithFadeOutDuration:(CGFloat)duration;
@end