Latest 0.0.1
License MIT
Platforms ios 7.0




For normal usage, add a TagsPanelView to ViewController

- (void) viewDidLoad {
    [super viewDidLoad];

    NSArray* tags = @[@"Oosaka", @"Kumamoto", @"Kyoto", @"Okinawa"];

    TagsPanelView* panelView = [[TagsPanelView alloc] init];
    [self.view addSubview: panelView];

    // setting tags;
    panelView.tagArray = tags

    // font size. Default is 14;
    panelView.fontSize = 14

    // you can only specify some of the colors and others will use the last one;
    panelView.tagsBackgroundColorsArray = @[[UIColor greenColor], [UIColor redColor]];

    // generate panel's width and height;
    CGFloat width = [UIScreen mainScreen].bounds.size.width;
    CGFloat height = [TagsPanelView generatePanelHeightThatFitSize:CGSizeMake(width, CGFLOAT_MAX) tags:tags fontSize:14];

    // setting frame
    panelView.frame = CGRectMake(0, 10, width, height);
    [panelView setNeedsDisplay];

For usage in a UITableCell, please check out TagsTableViewCell in the example project.

Installation with CocoaPods

pod 'TagsPanelView'

Easy right?


Requirements? No, eh, maybe. At least it works on iOS 7+.


TagsViewPanel is released under the MIT license. See LICENSE for details.

At last

Well it’s an advertisement for our APP, which called 翻牌子. English name is ForFun (well, you can’t search the english name in AppStore.). It’s a LGBT (don’t know what it means? google it) pairing and instant message app that maybe looks like tinder. But we are adding various of features on it.

AppStore –> F*ck me

Latest podspec

    "name": "TagsPanelView",
    "version": "0.0.1",
    "summary": "u76f4u63a5u7ed8u5236Tagu5230UIViewu4e2duff0cu53efu4ee5u4f7ftagu5f88u591au5e76u4e14u5728UITableViewCellu4e2du65f6uff0cu53efu4ee5u5febu901fu663eu793au6ed1u52a8u65e0u5361u987f .",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "zachgenius": "[email protected]"
    "platforms": {
        "ios": "7.0"
    "source": {
        "git": "",
        "tag": "0.0.1"
    "source_files": [
    "exclude_files": "TagsPanelView/Exclude"

Pin It on Pinterest

Share This