Latest 0.1.1
Homepage https://github.com/harushuu/SHGuideView
License MIT
Platforms ios 8.0, requires ARC
Dependencies SHButton, Masonry
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Screenshots

image

Installation

With CocoaPods, add this line to your Podfile.

pod 'SHGuideView', '~> 0.1.1'

and run pod install, then you’re all done!

How to use

    if ([SHGuideViewController needShowGuidePage]) {
            SHGuideViewController *guideViewController = [[SHGuideViewController alloc] initWithImageName:@"Guide" guidePage:3 completeHandle:^{
            //code... push your view controller;
        }];
        self.window.rootViewController = guideViewController;
    } else {
        //code... push your view controller;
    }

Summary

A simple guide viewController.

Just need set imageName and page count, then implement block functionality using your code please.

Please rename your guide image with format:

e.g.

yourImageName == 'Guide'
yourImageTotalCount == 3

your guide image with iPhone4S resolution:
Please rename your image with  :   'Guide_iPhone4S_1'
Please rename your image with  :   'Guide_iPhone4S_2'
Please rename your image with  :   'Guide_iPhone4S_3'

your guide image with iPhone5 resolution
Please rename your image with  :   'Guide_iPhone5_1'
Please rename your image with  :   'Guide_iPhone5_2'
Please rename your image with  :   'Guide_iPhone5_3'

your guide image with iPhone6 resolution
Please rename your image with  :   'Guide_iPhone6_1'
Please rename your image with  :   'Guide_iPhone6_2'
Please rename your image with  :   'Guide_iPhone6_3'

your guide image with iPhone6P resolution
Please rename your image with  :   'Guide_iPhone6P_1'
Please rename your image with  :   'Guide_iPhone6P_2'
Please rename your image with  :   'Guide_iPhone6P_3'

custom

// default color is lightGrayColor
@property (nonatomic, strong) UIColor *pageIndicatorTintColor;

// default color is darkGrayColor
@property (nonatomic, strong) UIColor *currentPageIndicatorTintColor;

// default color is lightGrayColor
@property (nonatomic, strong) UIColor *comfirmButtonTintColor;

// default color is whiteColor
@property (nonatomic, strong) UIColor *comfirmButtonTitleColor;

// default title is @"Start"
@property (nonatomic, strong) NSString *comfirmButtonTitle;

// default cornerRadius is 3.f;
@property (nonatomic, assign) CGFloat comfirmButtonCornerRadius;

// default is 70.f; distacen screen bottom from confirmButtonBottom;
@property (nonatomic, assign) CGFloat confirmButtonBottom;

// default is 30.f; distance screen bottom from pageIndicatorBottom;
@property (nonatomic, assign) CGFloat pageIndicatorBottom;

//
// if above property can not satisfies you, please complete custom comfirm button;
//
@property (nonatomic, strong) UIButton *userComfirmButton;

Requirements

  • iOS 8.0+
  • ARC

Author

@harushuu, [email protected]

License

English: SHGuideView is available under the MIT license, see the LICENSE file for more information.

Latest podspec

{
    "name": "SHGuideView",
    "version": "0.1.1",
    "summary": "A simple custom GuideView.",
    "homepage": "https://github.com/harushuu/SHGuideView",
    "screenshots": "https://github.com/harushuu/SHGuideView/raw/master/Screenshots.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "@harushuu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/harushuu/SHGuideView.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "SHGuideView/*",
    "frameworks": "UIKit",
    "dependencies": {
        "SHButton": [
            "~> 0.1.9"
        ],
        "Masonry": [
            "~> 0.6.4"
        ]
    }
}

Pin It on Pinterest

Share This