IOS学习笔记21 App介绍页面制作

来源:互联网 发布:网络实时监控 app 编辑:程序博客网 时间:2024/06/05 16:53

1.首先到下载需要用到的第三方库文件EAIntroView  下载地址:http://code4app.com/ios/EAIntroView/5263596b6803fa7164000001

使用实例:

#pragma mark - show intro view

- (void)showIntroWithCrossDissolve {

    UIStoryboard *storyboard = [UIStoryboardstoryboardWithName:@"Intro"bundle:[NSBundlemainBundle]];

    

    UIViewController *vc01 = [storyboardinstantiateViewControllerWithIdentifier:@"guide_01"];

    EAIntroPage *page1 = [EAIntroPagepageWithCustomView:vc01.view];

    

    UIViewController *vc02 = [storyboardinstantiateViewControllerWithIdentifier:@"guide_02"];

    EAIntroPage *page2 = [EAIntroPagepageWithCustomView:vc02.view];

    

    UIViewController *vc03 = [storyboardinstantiateViewControllerWithIdentifier:@"guide_03"];

    EAIntroPage *page3 = [EAIntroPagepageWithCustomView:vc03.view];

    

    //UIViewController *vc04 = [storyboard instantiateViewControllerWithIdentifier:@"guide_04"];

    //EAIntroPage *page4 = [EAIntroPage pageWithCustomView:vc04.view];


    CGRect rect = self.view.bounds;

   EAIntroView *intro = [[EAIntroViewalloc] initWithFrame:rectandPages:@[page1,page2,page3]];

    intro.easeOutCrossDisolves =YES;

    intro.hideOffscreenPages =YES;

//    intro.pageControl.pageIndicatorTintColor = [UIColor whiteColor];

//    intro.pageControl.currentPageIndicatorTintColor = DEFAULT_TEXT_COLOR_RED;

    [introsetPageControlY:IS_HEIGHT_GTE_568 ? 60 : 30];


    [introsetDelegate:self];

    [intro showInView:self.viewanimateDuration:0.1];

}


0 0