Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adambco/abcintroview
An easy way to add onboarding to your iOS application.
https://github.com/adambco/abcintroview
objective-c
Last synced: 12 days ago
JSON representation
An easy way to add onboarding to your iOS application.
- Host: GitHub
- URL: https://github.com/adambco/abcintroview
- Owner: AdamBCo
- License: mit
- Created: 2015-02-05T19:08:38.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-16T21:48:28.000Z (almost 8 years ago)
- Last Synced: 2025-01-10T09:09:11.214Z (12 days ago)
- Topics: objective-c
- Language: Objective-C
- Homepage:
- Size: 2.9 MB
- Stars: 256
- Watchers: 7
- Forks: 44
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
ABCIntroView
========================
ABCIntroView is an easy to use onboarding which allows you to introduce your users to the applicaiton before reaching the Main Screen.![drag](./SampleImages/ScreenShot_One.png)
![drag](./SampleImages/ScreenShot_Two.png)
![drag](./SampleImages/ScreenShot_Three.png)
![drag](./SampleImages/ScreenShot_Four.png)To use the ABCIntroView please do the following:
1. Add the follwing files found in the CLASSES folder to your project:
```
*ABCIntroView.h
*ABCIntroView.m
```2. Import the ABCIntoView file to your RootViewController.
3. Create an ABCIntroView property and add the ABCIntroViewDelegate.
4. Add the following line of code to your ViewDidLoad:
```
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if (![defaults objectForKey:@"intro_screen_viewed"]) {
self.introView = [[ABCIntroView alloc] initWithFrame:self.view.frame];
self.introView.delegate = self;
self.introView.backgroundColor = [UIColor greenColor];
[self.view addSubview:self.introView];
}
```5. Add the ABCIntroView Delegate Method:
```
#pragma mark - ABCIntroViewDelegate Methods-(void)onDoneButtonPressed{
// Uncomment so that the IntroView does not show after the user clicks "DONE"
// NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]
// [defaults setObject:@"YES"forKey:@"intro_screen_viewed"];
// [defaults synchronize];
[UIView animateWithDuration:1.0 delay:0 options:UIViewAnimationOptionCurveEaseInOut animations:^{
self.introView.alpha = 0;
} completion:^(BOOL finished) {
[self.introView removeFromSuperview];
}];
}
```If you have any questions about the project, please don't hesitate to ask.
Enjoy! :)
Adam