Code Monkey home page Code Monkey logo

dwqguidepage's Introduction

DWQGuidePage

引导页超级封装:包含倒计时,滑动引导,自动滑动,视频,gif,浮层添加等的强大的引导页的封装。 image

##使用方法

*一丶将DWQIntroductionAndLaunch拖入工程中【注意】,此框架依托于SDWebImage,如果你的程序中已经存在,请删除文件夹下的。 *二丶在Appelegate中引入头文件"DWQLaunchVC.h”,”DWQAdDetailVC.h”,”DWQIntroductionPage.h”,然后遵循协议,声明属性,代码如下

@interface AppDelegate ()<DWQLaunchDelegate,DWQIntroductionDelegate>
{
    DWQIntroductionPage * _dwqIntroductionPage;
    NSArray *            _dwqCoverImgNameArr; //浮层
    NSArray *            _dwqBgImgNameArr;//引导页图片
    NSArray *            _dwqCoverTitleArr;//浮层title
    NSURL   *            _dwqVideoUrl; //视频
    DWQLaunchVC *         _dwqLaunch;
}

*三丶引导页的调用方法有五种,具体如下,调用方法为【self normalGuid】;具体种类的模式下方代码介绍

/*分别为:normalGuid,      传统引导页
                guidWithCover,   带有浮层的引导页
                coverWithCustom, 可在浮层中添加自定义控件
                videoGuid,       视频引导页
           videoGuidWithCustom   视频可以自定义浮层的
         */

*四丶详情页使用,在Appdelegate.m文件中加入代理方法和点击事件

//详情页代理
- (void)dwqLaunchAdImgViewAction:(id)sender withObject:(id)object{
    DWQLaunchVC * dwqVC = object;
    
    DWQAdDetailVC * detailVC = [[DWQAdDetailVC alloc]init];
    detailVC.dwqWebUrl = @"https://github.com/DevelopmentEngineer-DWQ";
    detailVC.dwqRootVC = dwqVC.dwqRootVC;
    [dwqVC presentViewController:detailVC animated:YES completion:nil];
}
//进入按钮事件
- (void)dwqIntroductionViewEnterTap:(id)sender{
    _dwqIntroductionPage = nil;
    [_dwqLaunch dwq_startFire];//和引导页(DWQIntroductionPage)一起用的时候加上这句
 
}

*五丶使用注意事项:1.在添加自定义控件时,要确保添加的自定义控件的数组和引导页的张数保持一致,2.如果想使用倒计时模式,需要注释掉   _dwqIntroductionPage = [self coverWithCustom];//五种方式调用方法 3.本地视频播放需要把视频文件添加到工程Build Phase下的Copy Bundle Resources中。 *六丶Demo中有很多的注释,已经详细描述了如何使用。

##效果展示 image

image

image

image

image

image

##有问题反馈 在使用中有任何问题,欢迎反馈给我,可以用以下联系方式跟我交流

dwqguidepage's People

Contributors

developmentengineer-dwq avatar dwq2ios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.