就像 WordPress 的标签云一样的一个标签视图。
将 Classes
文件夹拖到您的项目中。
#import 'PFTagView.h'
...
// where you want to load this tag view
PFTagViewConfiguration *config = [PFTagViewConfiguration new];
PFTagView *view = [[PFTagView alloc] initWithFrame:frame
dict:dict
config:config];
...
@end
#import 'PFTagView.h'
...
// where you want to load this tag view
PFTagViewConfiguration *config = [PFTagViewConfiguration new];
config.tagViewCountLabelTextColor = [UIColor blueColor];
config.tagViewCountLabelFontSize = 8.f;
config.tagViewMainTextColor = [UIColor redColor];
config.maxFontSize = 24.f;
config.minFontSize = 10.f;
config.tagViewHeight = 30.f;
config.tagViewMargin = 10.f;
PFTagView *view = [[PFTagView alloc] initWithFrame:frame
dict:dict
config:config];
...
@end