Latest 1.1.1
Homepage https://github.com/ZHIOSLIB/ZHTagListView
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

标签,自适应宽度,自动折行,可限制字数或者宽度

使用方法:

NSMutableArray *list = [NSMutableArray arrayWithObjects:
@"Java",
@"JavaScript",
@"C",
@"C#",
@"C++",
@".NET",
@"Python",
@"PHP",
@"HTML5",
@"Swift",
@"Object-C",nil];

ZHTagListView *listV = [[ZHTagListView alloc] initWithFrame:CGRectMake(0, 20, self.view.frame.size.width, 0) configuration:[ZHTagListConfiguration defaultConfiguration] tagTexts:list];
listV.backgroundColor = [UIColor orangeColor];
[self.view addSubview:listV];
[listV setTagClickHandler:^(ZHTagListView *tagListView, NSString *tagText, NSUInteger index) {
[self jump:tagText];
}];

具体的属性使用Demo里有介绍。

Latest podspec

{
    "name": "ZHTagListView",
    "version": "1.1.1",
    "summary": "u6807u7b7e",
    "description": "u6807u7b7euff0cu81eau9002u5e94u5bbdu5ea6uff0cu81eau52a8u6298u884cuff0cu53efu9650u5236u5b57u6570u6216u8005u5bbdu5ea6",
    "homepage": "https://github.com/ZHIOSLIB/ZHTagListView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "leezhihua": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ZHIOSLIB/ZHTagListView.git",
        "tag": "1.1.1"
    },
    "source_files": "ZHTagListView/Classes/*.{h,m}",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This