Latest 0.1.1
Homepage https://github.com/thebookofleaves/CocoaTags
License MIT
Platforms ios 7.0, requires ARC
Authors

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

Latest podspec

{
    "name": "CocoaTag",
    "version": "0.1.1",
    "summary": "The package of useful tools, include categories and classes",
    "homepage": "https://github.com/thebookofleaves/CocoaTags",
    "license": "MIT",
    "authors": {
        "Cocoa Lee": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/thebookofleaves/CocoaTags.git",
        "tag": "0.1.1"
    },
    "source_files": "CocoaTag/CocoaTag/CocoaTag*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This