12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //
- // EAIntroPage.h
- //
- // Copyright (c) 2013-2015 Evgeny Aleksandrov. License: MIT.
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- typedef void (^VoidBlock)();
- @interface EAIntroPage : NSObject
- // background image or color used for cross-dissolve
- @property (nonatomic, strong) UIImage *bgImage;
- @property (nonatomic, strong) UIColor *bgColor;
- // show or hide EAIntroView titleView on this page (default YES)
- @property (nonatomic, assign) BOOL showTitleView;
- // properties for default EAIntroPage layout
- //
- // title image Y position - from top of the screen
- // title and description labels Y position - from bottom of the screen
- // all items from subviews array will be added on page
- /**
- * The title view that is presented above the title label.
- * The view can be a normal UIImageView or any other kind of
- * UIView. This allows you to attach animated views as well.
- */
- @property (nonatomic, strong) UIView * titleIconView;
- @property (nonatomic, assign) CGFloat titleIconPositionY;
- @property (nonatomic, strong) NSString *title;
- @property (nonatomic, strong) UIFont *titleFont;
- @property (nonatomic, strong) UIColor *titleColor;
- @property (nonatomic, assign) CGFloat titlePositionY;
- @property (nonatomic, assign) NSTextAlignment titleAlignment;
- @property (nonatomic, strong) NSString *desc;
- @property (nonatomic, strong) UIFont *descFont;
- @property (nonatomic, strong) UIColor *descColor;
- @property (nonatomic, assign) CGFloat descPositionY;
- @property (nonatomic, assign) CGFloat descSideMargin;
- @property (nonatomic, assign) NSTextAlignment descAlignment;
- @property (nonatomic, strong) NSArray<__kindof UIView *> *subviews;
- @property (nonatomic, assign) CGFloat alpha;
- @property (nonatomic,copy) VoidBlock onPageDidLoad;
- @property (nonatomic,copy) VoidBlock onPageDidAppear;
- @property (nonatomic,copy) VoidBlock onPageDidDisappear;
- // if customView is set - all other default properties are ignored
- @property (nonatomic, strong) UIView *customView;
- @property(nonatomic, strong, readonly) UIView *pageView;
- + (instancetype)page;
- + (instancetype)pageWithCustomView:(UIView *)customV;
- + (instancetype)pageWithCustomViewFromNibNamed:(NSString *)nibName;
- + (instancetype)pageWithCustomViewFromNibNamed:(NSString *)nibName bundle:(NSBundle*)aBundle;
- @end
|