TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Sep 2016 |
Maintained by harushuu.
Depends on: | |
SHButton | ~> 0.1.9 |
Masonry | ~> 0.6.4 |
With CocoaPods, add this line to your Podfile
.
pod 'SHGuideView', '~> 0.1.1'
and run pod install
, then you're all done!
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;
}
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:
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;
@harushuu, [email protected]
English: SHGuideView is available under the MIT license, see the LICENSE file for more information.