项目介绍:
Automatic-height-tagcells
The practice project meets some criteria: 主要功能如下
- Dynamic height of UITableViewCell based on autolayout / 基于autolayout的动态UITableViewCell高度调整
- Tags have to be aligned automatically / 标签自动对齐
- Tags have to be clickalbe /标签可点击
Usage 使用说明
Construct your own data source in the class TagGroups
[Objective-C] 查看源文件 复制代码
/* An initialization sample of AHTag */ AHTag *tag = [AHTag new]; tag.category = @"Genre"; tag.title = @"Classic"; tag.color = [UIColor colorWithRed:1 green:0.56 blue:0.56 alpha:1]; tag.url = [NSURL URLWithString:@"http://www.coldyam.com"]; tag.enabled = @YES;
DEMO 直接下载: