IOS学习笔记21 App介绍页面制作
2014-09-28 14:10
387 查看
1.首先到下载需要用到的第三方库文件EAIntroView 下载地址:http://code4app.com/ios/EAIntroView/5263596b6803fa7164000001
使用实例:
#pragma mark - show intro view
- (void)showIntroWithCrossDissolve {
UIStoryboard *storyboard = [UIStoryboard
storyboardWithName:@"Intro"
bundle:[NSBundle
mainBundle]];
UIViewController *vc01 = [storyboard
instantiateViewControllerWithIdentifier:@"guide_01"];
EAIntroPage *page1 = [EAIntroPage
pageWithCustomView:vc01.view];
UIViewController *vc02 = [storyboard
instantiateViewControllerWithIdentifier:@"guide_02"];
EAIntroPage *page2 = [EAIntroPage
pageWithCustomView:vc02.view];
UIViewController *vc03 = [storyboard
instantiateViewControllerWithIdentifier:@"guide_03"];
EAIntroPage *page3 = [EAIntroPage
pageWithCustomView:vc03.view];
//UIViewController *vc04 = [storyboard instantiateViewControllerWithIdentifier:@"guide_04"];
//EAIntroPage *page4 = [EAIntroPage pageWithCustomView:vc04.view];
CGRect rect =
self.view.bounds;
EAIntroView *intro = [[EAIntroView
alloc] initWithFrame:rect
andPages:@[page1,page2,page3]];
intro.easeOutCrossDisolves =
YES;
intro.hideOffscreenPages =
YES;
// intro.pageControl.pageIndicatorTintColor = [UIColor whiteColor];
// intro.pageControl.currentPageIndicatorTintColor = DEFAULT_TEXT_COLOR_RED;
[intro
setPageControlY:IS_HEIGHT_GTE_568 ? 60 : 30];
[intro
setDelegate:self];
[intro showInView:self.view
animateDuration:0.1];
}
使用实例:
#pragma mark - show intro view
- (void)showIntroWithCrossDissolve {
UIStoryboard *storyboard = [UIStoryboard
storyboardWithName:@"Intro"
bundle:[NSBundle
mainBundle]];
UIViewController *vc01 = [storyboard
instantiateViewControllerWithIdentifier:@"guide_01"];
EAIntroPage *page1 = [EAIntroPage
pageWithCustomView:vc01.view];
UIViewController *vc02 = [storyboard
instantiateViewControllerWithIdentifier:@"guide_02"];
EAIntroPage *page2 = [EAIntroPage
pageWithCustomView:vc02.view];
UIViewController *vc03 = [storyboard
instantiateViewControllerWithIdentifier:@"guide_03"];
EAIntroPage *page3 = [EAIntroPage
pageWithCustomView:vc03.view];
//UIViewController *vc04 = [storyboard instantiateViewControllerWithIdentifier:@"guide_04"];
//EAIntroPage *page4 = [EAIntroPage pageWithCustomView:vc04.view];
CGRect rect =
self.view.bounds;
EAIntroView *intro = [[EAIntroView
alloc] initWithFrame:rect
andPages:@[page1,page2,page3]];
intro.easeOutCrossDisolves =
YES;
intro.hideOffscreenPages =
YES;
// intro.pageControl.pageIndicatorTintColor = [UIColor whiteColor];
// intro.pageControl.currentPageIndicatorTintColor = DEFAULT_TEXT_COLOR_RED;
[intro
setPageControlY:IS_HEIGHT_GTE_568 ? 60 : 30];
[intro
setDelegate:self];
[intro showInView:self.view
animateDuration:0.1];
}
相关文章推荐
- iOS阶段学习第32天笔记(页面传值方法介绍)
- iOS学习笔记31—appStore检查版本更新与从app里跳到appstore评论页面
- Nutch 1.3 学习笔记 11-2 页面评分机制 LinkRank 介绍
- iOS学习笔记14(1)—Core Data简单介绍和实现
- 2011斯坦福大学iOS应用开发教程学习笔记(第二课)My First iOS App
- ios学习之 关于Certificate、Provisioning Profile、App ID的介绍及其之间的关系
- 2011斯坦福大学iOS应用开发教程学习笔记(第二课)My First iOS App
- javascript 客户端验证和页面特效制作 学习笔记
- iOS学习笔记9 - 组件库介绍1
- IOS学习笔记61--299刀企业证书APP的发布
- IOS学习笔记43--IOS App在ItunesConnect里面的几种状态
- 2011斯坦福大学iOS应用开发教程学习笔记(第二课)My First iOS App
- 2011斯坦福大学iOS应用开发教程学习笔记(第二课)My First iOS App
- Nutch 1.3 学习笔记 11-2 页面评分机制 LinkRank 介绍
- iOS学习笔记10(2)—GCD介绍(二): 多核心的性能
- ios学习之 关于Certificate、Provisioning Profile、App ID的介绍及其之间的关系
- IOS学习笔记21—沙盒机制(SandBox)
- iOS学习笔记10(4)—GCD介绍(四): 完结
- (转) ios学习之 关于Certificate、Provisioning Profile、App ID的介绍及其之间的关系
- IOS学习笔记4-NSNotificationCenter消息通信机制介绍(KVO)