Skip to content

Czing/CZTagButtons

Repository files navigation

CZTagButtons

实现按钮的不规则排序

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)];

About

一行代码解决标签排序问题

Resources

License

Stars

Watchers

Forks

Packages

No packages published