Latest 0.0.5
Homepage https://github.com/CoderDwang/DWGuidePage
License MIT
Platforms ios 8.0
Frameworks Foundation, UIKit
Authors

CocoaPods 
CocoaPods 
License
GitHub stars

  • version
    • 0.0.2
  • Cocoapods
    • pod ‘DWGuidePage’, ‘~> 0.0.2’

logo

此项目使用Xcode8.1创建,低版本Xcode打开可能会无法使用

如果感觉不错,请给个Star支持一下

使用中如果遇到什么问题可以联系我

QQ群:577506623

QQ群

e-mail:[email protected]

本地图片引导页

USE/使用

  • DWGuidePage文件夹拖入到项目中
       
  • appdelegate.m中引入头文件

    • #import "DWGuidePage.h"
    • #import "引导页.h"
    • #import "首页.h"
  • – (BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions {}  方法中加入以下代码

            self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    [DWGuidePage
    dw_AppDelegateGuidePageWindow:
    self.window
    guidePageVC:[引导页 new]
    mainVC:[首页 new]];
    [self.window makeKeyAndVisible];

  • 在引导页控制器中引入头文件
    • import "DWGuidePage.h"

  • 声明代理
  • 初始化
    • DWGuidePage *guidePage = [[DWGuidePage alloc]initWithFrame:self.view.bounds];
  • 遵循代理
    • guidePage.delegate = self;
  • 设置内容
    • //imageArray:图片名与image对象可以用时使用

        [guidePage dw_guidePageImageArray:@[@"IMG_1",
      [UIImage imageNamed:@"IMG_2"],
      @"IMG_3",
      [UIImage imageNamed:@"IMG_4"]] content:^(UIView *currentView, NSInteger currentPage, NSInteger count) {}];

  • 执行代理方法//实时获取用户操作

      – (void)dw_guidePageViewDidGuidePage:(double)guidePage
    pageCount:(NSInteger)pageCount;

Latest podspec

{
    "name": "DWGuidePage",
    "version": "0.0.5",
    "summary": "Appu9996u6b21u6253u5f00u5f15u5bfcu56fe.",
    "description": "- u4e00u6b3eu7528u4e8eiOSu7aefu7684Appu5f15u5bfcu56fe",
    "homepage": "https://github.com/CoderDwang/DWGuidePage",
    "license": "MIT",
    "authors": {
        "CoderDwang": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/CoderDwang/DWGuidePage.git",
        "tag": "0.0.5"
    },
    "source_files": [
        "DWGuidePage",
        "DWGuidePage/**/*.{h,m}"
    ],
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This