Latest 1.0.1
Homepage https://github.com/maltsugar/GYIntroductionView
License MIT
Platforms ios 8.0
Frameworks UIKit, AVFoundation
Authors

GYIntroductionView GYIntroductionView CocoaPods GYIntroductionView

English

App 启动引导页 新特性介绍,App launch guide page Introduction to new features

App 启动介绍页

网上的轮子搜了搜不好用,灵活度不高,特来写一个支持任意自定义的。我一直认为无论怎么参考市面上APP的效果,也不可能模仿的完。所以写一些工具类的时候最重要的原则就是能灵活自定义,将具体的实现交给开发者,让他们想怎么做都行。像我的另外两个库(RollingNotice,CustomPopoverView),也是这一原则,以后我做小组件也会尽量以这个原则作为第一标准,这样才算是一个“体贴”的库

版本记录

  • 1.0.1 修复#1,修复iPhone X,只有前景图时,滑动残影的bug

这款启动视图,首先模仿几个特别典型的效果,至于没有的效果,完全交给你自由发挥了😬

素材和视频背景播放的方式来自ZWIntroductionViewController,感谢作者。

用法

  • 手动下载,将GYIntroductionView拖进项目
  • Cocoapods: pod 'GYIntroductionView'

普通用法

    NSArray *coverImageNames = @[@"img_index_01txt", @"img_index_02txt", @"img_index_03txt"];
    NSArray *backgroundImageNames = @[@"img_index_01bg", @"img_index_02bg", @"img_index_03bg"];

    GYIntroductionView *introductionView = [[GYIntroductionView alloc] initWithImgNames:coverImageNames bgImgNames:backgroundImageNames];
    [self.window addSubview:introductionView];
    _introductionView = introductionView;

    // enterButton and it's action
    // 进入按钮和进入按钮的回调
    UIButton *enterBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    enterBtn.bounds = CGRectMake(0, 0, 200, 60);
    enterBtn.center = CGPointMake(self.window.center.x, CGRectGetMaxY(self.window.frame) - 160);
    enterBtn.backgroundColor = [UIColor redColor];
    [enterBtn setTitle:@"立即进入" forState:UIControlStateNormal];
    introductionView.enterButton = enterBtn;

    [introductionView setEnterBlock:^{
        NSLog(@"block 点击进入");
    }];

    introductionView.delegate = self;

自定义

    _imgNames = @[@"img_index_01bg", @"img_index_02bg", @"img_index_03bg"];

    GYIntroductionView *introductionView = [[GYIntroductionView alloc] initWithImgCount:_imgNames.count andDataSource:self];
    introductionView.pageControl.frame = CGRectMake(0, 0, 100, 50);

    // ⚠️⚠️DO NOT forget to register your cell with intrrolCollectionView⚠️⚠️
    [introductionView.introlCollectionView registerNib:[UINib nibWithNibName:@"CustomIntroductionCell" bundle:nil] forCellWithReuseIdentifier:@"CustomIntroductionCell"];

    [self.window addSubview:introductionView];
    _introductionView = introductionView;

demo

GYIntroductionView

GYIntroductionView

Latest podspec

{
    "name": "GYIntroductionView",
    "version": "1.0.1",
    "summary": "App u542fu52a8u5f15u5bfcu9875 u65b0u7279u6027u4ecbu7ecd u652fu6301u7075u6d3bu81eau5b9au4e49u6bcfu4e2au9875u9762uff0cApp launch guide page Introduction to new features, support flexible customization of each page",
    "description": "# GYIntroductionViewnn### [English](https://github.com/maltsugar/GYIntroductionView/blob/master/README_en.md)nApp u542fu52a8u5f15u5bfcu9875 u65b0u7279u6027u4ecbu7ecduff0cApp launch guide page Introduction to new featuresnnn# App u542fu52a8u4ecbu7ecdu9875nu7f51u4e0au7684u8f6eu5b50u641cu4e86u641cu4e0du597du7528uff0cu7075u6d3bu5ea6u4e0du9ad8uff0cu7279u6765u5199u4e00u4e2au652fu6301u4efbu610fu81eau5b9au4e49u7684u3002u6211u4e00u76f4u8ba4u4e3au65e0u8bbau600eu4e48u53c2u8003u5e02u9762u4e0aAPPu7684u6548u679cuff0cu4e5fu4e0du53efu80fdu6a21u4effu7684u5b8cu3002u6240u4ee5u5199u4e00u4e9bu5de5u5177u7c7bu7684u65f6u5019u6700u91cdu8981u7684u539fu5219u5c31u662fu80fdu7075u6d3bu81eau5b9au4e49uff0cu5c06u5177u4f53u7684u5b9eu73b0u4ea4u7ed9u5f00u53d1u8005uff0cu8ba9u4ed6u4eecu60f3u600eu4e48u505au90fdu884cu3002u50cfu6211u7684u53e6u5916u4e24u4e2au5e93uff08[RollingNotice](https://github.com/maltsugar/RollingNotice),[CustomPopoverView](https://github.com/maltsugar/CustomPopoverView)uff09uff0cu4e5fu662fu8fd9u4e00u539fu5219uff0cu4ee5u540eu6211u505au5c0fu7ec4u4ef6u4e5fu4f1au5c3du91cfu4ee5u8fd9u4e2au539fu5219u4f5cu4e3au7b2cu4e00u6807u51c6uff0cu8fd9u6837u624du7b97u662fu4e00u4e2au201cu4f53u8d34u201du7684u5e93nn## u8fd9u6b3eu542fu52a8u89c6u56feuff0cu9996u5148u6a21u4effu51e0u4e2au7279u522bu5178u578bu7684u6548u679cuff0cu81f3u4e8eu6ca1u6709u7684u6548u679cuff0cu5b8cu5168u4ea4u7ed9u4f60u81eau7531u53d1u6325u4e86ud83dude2cnnnu7d20u6750u548cu89c6u9891u80ccu666fu64adu653eu7684u65b9u5f0fu6765u81ea[ZWIntroductionViewController](https://github.com/squarezw/ZWIntroductionViewController)uff0cu611fu8c22u4f5cu8005u3002nn# demon![](http://wx4.sinaimg.cn/mw690/72aba7efgy1fswqrtyvb5g208x0ga1gd.gif)nn![](https://github.com/maltsugar/GYIntroductionView/blob/master/Untitled0.gif)",
    "homepage": "https://github.com/maltsugar/GYIntroductionView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "zgy": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/maltsugar/GYIntroductionView.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "GYIntroductionView",
        "GYIntroductionView/GYIntroductionView/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "frameworks": [
        "UIKit",
        "AVFoundation"
    ]
}

Pin It on Pinterest

Share This