CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2015 |
Maintained by Fabio Knoedt.
A UIView subclass for Tutorial/Welcome/New Feature/Explanation flow. You can focus one element in the screen and show instructions about this element. Also, you can run blocks of code after the user closes the box/dialog.
This UI library was designed to show a simple balloon/box with:
When the user closes (tapping) in the box, you have 2 options:
The second option is useful for tutorials or presenting new features. For example, you want to show an explanation text for the user when she taps in a button, but you still want to perform the action of that button. In this case, you call the YCTutorialBox sending a block of code to execute when the user dismisses (closes) the dialog.
We recommend you to install this project using CocoaPods:
platform :ios, '6.0'
pod "YCTutorialBox"
a. Headline, no help text, no focus, no completion block.
YCTutorialBox *tutorial = [[YCTutorialBox alloc] initWithHeadline:@"HEADLINE"];
[tutorial show];
b. Headline, help text, no focus, no completion block.
YCTutorialBox *tutorial = [[YCTutorialBox alloc] initWithHeadline:@"HEADLINE"
withHelpText:@"HELPTEXT"];
[tutorial show];
c. Headline, help text, with focus in an (UIView *), no completion block.
YCTutorialBox *tutorial = [[YCTutorialBox alloc] initWithHeadline:@"HEADLINE"
withHelpText:@"HELPTEXT"];
[tutorial showAndFocusView:UIVIEW_OBJECT_TO_FOCUS];
d. Headline, help text, no focus, with completion block.
YCTutorialBox *tutorial = [[YCTutorialBox alloc] initWithHeadline:@"HEADLINE"
withHelpText:@"HELPTEXT"
withCompletionBlock:^
{
/// Block to be executed when the user close the tutorial box.
}];
[tutorial show];
Runs fine in iOS6+ and requires ARC. Designed for every iDevice (iPhone, iPad or iPod).