您的位置:首页 > 移动开发

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];
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  app