Latest 1.0.2
Homepage https://github.com/Czing/CZTagButtons
License MIT
Platforms ios 7.0, requires ARC
Authors

实现按钮的不规则排序
====
image

Podfile

To integrate CZTagButtons into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'

target 'TargetName' do
pod'CZTagButtons'    ,'~>1.0.2'
end

使用说明

//导入头文件

#import "CZTagButtons.h"

//block回调 点击标签信息 *frame填写的时高度失效 内部已经计算好 可以获取buttons的高度

//typographyButtonTitles 为所需标签个数

 CZTagButtons *button  =[[CZTagButtons alloc]initWithCompletionHandlerBlock:^(CZTypographyButton *button, NSInteger index) {
        NSLog(@"%@----%zd ",button.titleLabel.text,index);

    } typographyButtonTitles:@[@"ios",@"andriod",@"java",@"手机开发",@"web前端开发",@"好程序员学前班",@"VR学习",@"智能机器人",@"C++",@"HTML/CSS",@"C#",@"Swift",@"JavaScript",@"R",@"Git",@".NET"] withSuperViewF:CGRectMake(10, 100, M_W -20, 10000)];

swift参考Demo


Latest podspec

{
    "name": "CZTagButtons",
    "version": "1.0.2",
    "summary": "One line of code to realize irregular button label sorting.",
    "platforms": {
        "ios": "7.0"
    },
    "homepage": "https://github.com/Czing/CZTagButtons",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "cyz123": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Czing/CZTagButtons.git",
        "tag": "1.0.2"
    },
    "source_files": "CZTagButtons/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This