Skip to content

nsleejian/CocoaTags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CocoaTags

CocoaTags --标签展示 ###效果展示 image

###使用方法 =================

###podfile

platform :ios, '7.0'

pod 'CocoaTag', '~> 0.1.1'

=================

1、根据数组初始化

 NSArray *array = @[@"123",@"德玛西亚",@"扭曲丛林",@"百度",@"阿里巴巴",@"Cocoa",@"洁白月光",@"秦时明月",@"花草",@"大圣归来",@"你在干嘛呢",@"碉堡了",@"然并卵",@"纯则脆,阳则钢"];
CocoaTagView *tagsView = [[CocoaTagView alloc] initWithFrame:CGRectMake(0, 20,CGRectGetWidth(self.view.bounds), 200)];
   [self.view addSubview:tagsView];
   [tagsView setTagsWithTagsArray:array];

####2、增加tags

  [_tagsView updateTags:array];