-
Notifications
You must be signed in to change notification settings - Fork 2
/
YCTutorialBox.h
56 lines (48 loc) · 1.57 KB
/
YCTutorialBox.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
47
48
49
50
51
52
53
54
55
56
//
// YCTutorialBox.h
// YU - YUPPIU
//
// Created by Fabio Knoedt on 26/08/14.
// Copyright (c) 2014 Datedicted. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <FXBlurView/FXBlurView.h>
/*!
* A simple UIView/FXBlurView class to display Alerts with text
* and also focus in a specific view, making the rest blurred.
*/
@interface YCTutorialBox : FXBlurView
/*!
* Initialize the view with a headline.
* @param headline The Headline of the box.
* @return the initialized object.
*/
- (instancetype)initWithHeadline:(NSString *)headline;
/*!
* Initialize the view with a headline and a help text.
* @param headline headline The Headline of the box.
* @param helpText headline The help text or description of the box.
* @return the initialized object.
*/
- (instancetype)initWithHeadline:(NSString *)headline
withHelpText:(NSString *)helpText;
/*!
* Initialize the view with a headline, help text and a completion block.
* @param headline headline The Headline of the box.
* @param helpText headline The help text or description of the box.
* @param completion A completion block to be executed after the view is dismissed.
* @return the initialized object.
*/
- (instancetype)initWithHeadline:(NSString *)headline
withHelpText:(NSString *)helpText
withCompletionBlock:(void (^)())completion;
/*!
* Show the box on the screen.
*/
- (void)show;
/*!
* Show the box on the screen with focus on the view selected.
* @param view The view to make focus on.
*/
- (void)showAndFocusView:(UIView *)view;
@end