Latest 0.0.3
Homepage https://github.com/lyc59621/JDragonTypeButtonView
License MIT
Platforms ios 7.0, requires ARC
Authors

iOS SliderBtn 封装

badge-pod badge-languages badge-platforms badge-mit

使用效果

user pod


pod 'JDragonTypeButtonView','~> 0.0.3'

基本使用


@interface ViewController ()<JDragonTypeButtonActionDelegate>

@end
@implementation ViewController

- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"首页";
// Do any additional setup after loading the view, typically from a nib.

JDragonTypeButtonView  *typeBtnView = [[JDragonTypeButtonView  alloc]initWithFrame:CGRectMake(0, 64, [UIScreen mainScreen].bounds.size.width, 44)];
[typeBtnView setTypeButtonTitles:@[@"第一个",@"第二个",@"第三个"] withDownLableHeight:2 andDeleagte:self];
[typeBtnView setTypeButtonNormalColor:RGBCOLOR(0x656565) andSelectColor:RGBCOLOR(0xde2418)];
typeBtnView.backgroundColor = [UIColor whiteColor];
[self.view addSubview:typeBtnView];
}
//实现代理
-(void)didClickTypeButtonAction:(UIButton*)button withIndex:(NSInteger)index
{
NSLog(@"现在点击的是%ld个",index);
}

详细请看demo

Latest podspec

{
    "name": "JDragonTypeButtonView",
    "version": "0.0.3",
    "summary": "iOS slider Btn u5c01u88c5",
    "description": "u4e00u4e2au975eu5e38u7b80u5355u7684slider btn u5c01u88c5",
    "homepage": "https://github.com/lyc59621/JDragonTypeButtonView",
    "license": "MIT",
    "authors": {
        "JDragon": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/lyc59621/JDragonTypeButtonView.git",
        "tag": "0.0.3"
    },
    "source_files": "JDragonTypeButtonView/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This