40 lines
1.5 KiB
Objective-C
40 lines
1.5 KiB
Objective-C
//
|
|
// MyIntroductionViewController.h
|
|
// Ifish
|
|
//
|
|
// Created by imac on 15/11/26.
|
|
// Copyright © 2015年 imac. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
typedef NS_ENUM(NSInteger, LXIntroductionStyle) {
|
|
LXIntroductionStyleAllPageGoButton = 0,//every page has go button
|
|
LXIntroductionStyleLastPageGoButton,//last page has go button
|
|
LXIntroductionStyleFullScreenGoButton //last page, full screen alpha = 0
|
|
};
|
|
@protocol LXIntrductionDelegate <NSObject>
|
|
|
|
-(void)goButtonAction;
|
|
|
|
@end
|
|
|
|
@interface MyIntroductionViewController : UIViewController
|
|
typedef void(^GoActionBack)(MyIntroductionViewController * intrVC);
|
|
|
|
@property(nonatomic,strong)NSArray * titles;// page title
|
|
@property(nonatomic,strong)NSArray * contents;// page content
|
|
@property(nonatomic,strong)NSArray * imageNames;// bundle imageName
|
|
|
|
@property(nonatomic,assign)LXIntroductionStyle introductionStyle;//default is LXIntroductionStyleAllPageGoButton
|
|
@property(nonatomic)BOOL hiddenPageControl;//default is NO
|
|
@property(nonatomic,assign) id <LXIntrductionDelegate> delegate;//delegate
|
|
|
|
@property(nonatomic,assign)NSInteger page;//page
|
|
@property(nonatomic,strong)GoActionBack goActionCallBack;
|
|
-(void)goButtonActionBlock:(void(^)(void))goButtonActionBlock;//block
|
|
|
|
+(instancetype)showIntroductionWithTitles:(NSArray *)titles contents:(NSArray *)contents imageNames:(NSArray *)imageNames style:(LXIntroductionStyle)introductionStyle goButtonActionBlock:(GoActionBack)goButtonActionBlock;//fast show
|
|
|
|
|
|
@end
|