项目
在 GitHub 查看
AdamBCo/ABCIntroView
关于
An easy way to add onboarding to your iOS application.
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文ABCIntroView
ABCIntroView is an easy to use onboarding which allows you to introduce your users to the applicaiton before reaching the Main Screen.

To use the ABCIntroView please do the following:
- Add the follwing files found in the CLASSES folder to your project:
*ABCIntroView.h
*ABCIntroView.m
Import the ABCIntoView file to your RootViewController.
Create an ABCIntroView property and add the ABCIntroViewDelegate.
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];
}
- 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
探索相关项目
加载中…