Latest 0.2.0.7
Homepage https://github.com/mrjlovetian/YHJTagList
License MIT
Platforms ios 7.0, requires ARC
Authors

CI Status
Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

YHJTagList is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MRJTagList"

use

MRJTagList *listView = [[MRJTagList alloc] initWithFrame:CGRectMake(0, 100, [UIScreen mainScreen].bounds.size.width, 100)];
    listView.tagDelegate = self;
    listView.automaticResize = YES;
    listView.bottomMargin = 10;
    listView.horizontalPadding = 5;
    listView.verticalPadding = 30;
    listView.minimumWidth = 100;
    listView.cornerRadius = 1.0;
    listView.font = [UIFont systemFontOfSize:11];
    listView.textColor = [UIColor orangeColor];
    [listView setTags:@[@"苹果", @"香蕉", @"西瓜", @"大话西游", @"国产零零零七"]];
//    listView.isTouch = NO;
    listView.labelMargin = 10;
    listView.isManySelect = YES;
    [self.view addSubview:listView];

“`- (void)selectedTag:(NSString *)tagName tagIndex:(NSInteger)tagIndex {
NSLog(@"-=-==-tagName=%@-=-=-=-tagindex=%ld", tagName, tagIndex);
}

  • (void)selectedTag:(NSString *)tagName {
    NSLog(@"————-selectedTag-%@", tagName);
    }

  • (void)tagListTagsChanged:(MRJTagList *)tagList {
    NSLog(@"-===0909090-=-=-=-%@", tagList);
    }

/**

  • 多标签的代理方法
  • @param tagNames 多标签的名称
  • @param tagIndexs 多标签的下标值
    */

    • (void)selectedTags:(NSArray )tagNames tagIndex:(NSArray )tagIndexs {
      NSLog(@"****%@____%@", tagNames, tagIndexs);
      }

Author

余洪江, [email protected]

License

新的使用方法

MRJTagList

YHJTagList is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MRJTagList",
    "version": "0.2.0.7",
    "summary": "u53efu8bbeu7f6eu591au6807u7b7euff0cu5355u4e2au6807u7b7eu9009u62e9.",
    "description": "u591au4e2au6807u7b7euff0cu5355u4e2au53d8u8fc1u9009u62e9u5668uff0cu65b9u4fbfu9009u62e9u4f7fu7528uff0cnu56deu8c03u65b9u6cd5u8bbeu7f6eu9009u62e9u7684u503c",
    "homepage": "https://github.com/mrjlovetian/YHJTagList",
    "license": "MIT",
    "authors": {
        "u4f59u6d2au6c5f": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mrjlovetian/YHJTagList.git",
        "tag": "0.2.0.7"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*"
}

Pin It on Pinterest

Share This