Latest 0.0.4
Homepage https://github.com/MeteoriteMan/CHDivideEquallyChannelView
License MIT
Platforms ios
Dependencies Masonry
Frameworks Foundation, UIKit, Masonry
Authors

效果

CHDivideEquallyChannelView

使用

    self.divideEquallyChannelView = [[CHDivideEquallyChannelView alloc] init];
    self.divideEquallyChannelView.buttonNormalFont = [UIFont systemFontOfSize:10 weight:UIFontWeightRegular];
    self.divideEquallyChannelView.buttonSelectedFont = [UIFont systemFontOfSize:16 weight:UIFontWeightMedium];
    self.divideEquallyChannelView.shouldTwigViewBeRadius = YES;
    self.divideEquallyChannelView.viewTwigWidth = 10;
    self.divideEquallyChannelView.viewTwigHeight = 6;
    self.divideEquallyChannelView.shouldTwigViewWidthEquateToSelectedButton = YES;
    self.divideEquallyChannelView.arrayTitle = @[@"史泽东" ,@"董雷" ,@"村上村树"];
    [self.view addSubview:self.divideEquallyChannelView];
    [self.divideEquallyChannelView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.offset(0);
        make.height.offset(44);
        make.top.equalTo(self.mas_topLayoutGuide);
    }];
    [self.divideEquallyChannelView reloadData];

安装

使用 CocoaPods 集成.
首先在podfile中

pod 'CHDivideEquallyChannelView'

安装一下pod

#import <CHDivideEquallyChannelView/CHDivideEquallyChannelView.h>

更新记录

版本 更新内容
0.0.1 支持设置TwigView,是否隐藏等.正常/选中状态字体,文字颜色设置.
0.0.2 修复不能设置0.0.1版本TwigView颜色的BUG
0.0.3 新增一个TwigView的过度动画
0.0.4 修复偶数个布局时的Bug

Latest podspec

{
    "name": "CHDivideEquallyChannelView",
    "version": "0.0.4",
    "summary": "CHDivideEquallyChannelViewu53efu4ee5u8ba9u4f60u5febu901fu7684u521bu5efau4e00u4e2au5e73u5206u7684u6309u94aeu4f4du7f6eu7684u9891u9053u63a7u4ef6",
    "homepage": "https://github.com/MeteoriteMan/CHDivideEquallyChannelView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u5f20u6668u6656": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/MeteoriteMan/CHDivideEquallyChannelView.git",
        "tag": "0.0.4"
    },
    "source_files": "CHDivideEquallyChannelView/**/*.{h,m}",
    "frameworks": [
        "Foundation",
        "UIKit",
        "Masonry"
    ],
    "dependencies": {
        "Masonry": [
            "~> 1.1.0"
        ]
    }
}

Pin It on Pinterest

Share This