KSGuide 1.5.1

KSGuide 1.5.1

测试已测试
语言语言 Obj-CObjective C
许可协议 MIT
发布最后发布2016年12月

Howard维护。



KSGuide 1.5.1

  • 作者:
  • 郝冰

iOS App 首次启动指南

设置

    NSMutableArray *paths = [NSMutableArray new];

    [paths addObject:[[NSBundle mainBundle] pathForResource:@"1" ofType:@"jpg"]];
    [paths addObject:[[NSBundle mainBundle] pathForResource:@"2" ofType:@"jpg"]];
    [paths addObject:[[NSBundle mainBundle] pathForResource:@"3" ofType:@"jpg"]];
    [paths addObject:[[NSBundle mainBundle] pathForResource:@"4" ofType:@"jpg"]];

    [[KSGuideManager shared] showGuideViewWithImages:paths];

自定义按钮

    [[KSGuideManager shared] setDelegate:self];

    - (UIButton *)KSGuidLastPageButton {
        UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
        [button setFrame:CGRectMake(0, 0, 200, 44)];
        [button setTitle:@"Hi~~" forState:UIControlStateNormal];
        [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        [button.layer setCornerRadius:5];
        [button.layer setBorderColor:[UIColor grayColor].CGColor];
        [button.layer setBorderWidth:1.0f];
        [button setBackgroundColor:[UIColor whiteColor]];
        [button setCenter:CGPointMake(kScreenBounds.size.width / 2, kScreenBounds.size.height - 100)];
    return button;
}

安装

    platform:ios,'7.0'

    pod 'KSGuide', '~> 1.2'