[
  {
    "path": ".gitignore",
    "content": "tuangou.xcworkspace/xcuserdata/*\n*Breakpoints*\nompiled source #\n###################\n*.com\n*.class\n*.dll\n*.exe\n*.o\n*.so\n\n# Packages #\n############\n# it's better to unpack these files and commit the raw source\n# git has its own built in compression methods\n*.7z\n*.dmg\n*.gz\n*.iso\n*.jar\n*.rar\n*.tar\n*.zip\n\n# Logs and databases #\n######################\n*.log\n*.sql\n*.sqlite\n\n# OS generated files #\n######################\n.DS_Store\n.DS_Store?\n._*\n.Spotlight-V100\n.Trashes\nIcon?\nehthumbs.db\nThumbs.db\n\n/build/\n*.dat\nUserInterfaceState.xcuserstate\nxcuserdata/\nPods/Pods.xcodeproj/xcuserdata/\nEYTagView_Example/EYTagView_Example.xcodeproj/project.xcworkspace/xcshareddata/\n"
  },
  {
    "path": "EYTagView/EYTagView.h",
    "content": "//\n//  EYTagView.h\n//  EYTagView_Example\n//\n//  Created by ericyang on 8/9/15.\n//  Copyright (c) 2015 Eric Yang. All rights reserved.\n//\n//\n//  Current Version Time: 2015-08-27\n//\n\n#import <UIKit/UIKit.h>\n\n\n\n#define COLORRGBA(c,a) [UIColor colorWithRed:((c>>16)&0xFF)/255.0\t\\\ngreen:((c>>8)&0xFF)/255.0\t\\\nblue:(c&0xFF)/255.0         \\\nalpha:a]\n#define COLORRGB(c)    [UIColor colorWithRed:((c>>16)&0xFF)/255.0\t\\\ngreen:((c>>8)&0xFF)/255.0\t\\\nblue:(c&0xFF)/255.0         \\\nalpha:1.0]\n\n\n\n#define _K_SCREEN_WIDTH ([[UIScreen mainScreen ] bounds ].size.width)\n\n#ifndef DEBUG_LOG\n#define DEBUG_LOG\n#define LOGERROR NSLog(@\"error !!!!!!!!! %s,%d\",__FUNCTION__,__LINE__);\n#define LOGWARNING NSLog(@\"warning %s,%d\",__FUNCTION__,__LINE__);\n#define LOGERRORMSG(msg) NSLog(@\"error:%@ %s,%d\",msg,__FUNCTION__,__LINE__);\n#define LOGLINE NSLog(@\"info %s,%d\",__FUNCTION__,__LINE__);\n#define LOGINFO(format,value)  NSLog([NSString stringWithFormat:@\"%@ ; info %%s,%%d\",format],value,__FUNCTION__,__LINE__);\n#define LOGTEXT(value)  NSLog(@\"%@ ; info %s,%d\",value,__FUNCTION__,__LINE__);\n#define LOGTODO NSLog(@\"TODO !!!!! ; info %s,%d\",__FUNCTION__,__LINE__);\n#define LOGTIME NSLog(@\"%f %s,%d\",[[NSDate date]timeIntervalSince1970],__FUNCTION__,__LINE__);\n\n#define LOGNOTHING(format,value)\n#endif\n\n@class EYTagView;\n@protocol EYTagViewDelegate <NSObject>\n\n@optional\n-(void)heightDidChangedTagView:(EYTagView*)tagView;\n\n-(void)tagDidBeginEditing:(EYTagView*)tagView;\n-(void)tagDidEndEditing:(EYTagView*)tagView;\n\n/**\n *  @return whether delete\n */\n-(BOOL)willRemoveTag:(EYTagView*)tagView index:(NSInteger)index;\n@end\n\ntypedef enum{\n    EYTagView_Type_Edit,\n    EYTagView_Type_Edit_Only_Delete,\n    EYTagView_Type_Display,\n    EYTagView_Type_Single_Selected,\n    EYTagView_Type_Multi_Selected,\n    EYTagView_Type_Multi_Selected_Edit,\n    EYTagView_Type_Flow,\n}EYTagView_Type;\n\n@interface EYTagView : UIView\n@property (nonatomic, strong) id<EYTagViewDelegate> delegate;\n@property (nonatomic, strong) UITextField* tfInput;\n@property (nonatomic) EYTagView_Type type;//default edit\n\n\n\n/**\n *  numberOfLines & preferredMaxLayoutWidth just like UILabel\n */\n@property (nonatomic) NSInteger numberOfLines;//default 0\n\n@property (nonatomic) float tagHeight;//default\n\n@property (nonatomic) float viewMaxHeight;\n\n@property (nonatomic) CGSize tagPaddingSize;//top & left\n@property (nonatomic) CGSize textPaddingSize;\n\n\n@property (nonatomic, strong) UIFont* fontTag;\n@property (nonatomic, strong) UIFont* fontInput;\n\n\n@property (nonatomic, strong) UIColor* colorTag;\n@property (nonatomic, strong) UIColor* colorTagUnselected;\n@property (nonatomic, strong) UIColor* colorTagBoard;\n@property (nonatomic, strong) UIColor* colorInput;\n@property (nonatomic, strong) UIColor* colorInputPlaceholder;\n\n@property (nonatomic, strong) UIColor* colorTagBg;\n@property (nonatomic, strong) UIColor* colorInputBg;\n@property (nonatomic, strong) UIColor* colorInputBoard;\n\n@property (assign) NSInteger maxSelected;\n@property (nonatomic, strong) NSMutableArray *tagArrows;//array of alll arrow\n\n\n- (void)addTags:(NSArray *)tags;\n- (void)addTags:(NSArray *)tags selectedTags:(NSArray*)selectedTags;\n- (NSArray *)getTagTexts;\n- (void)removeAllTags;\n- (void)removeTag:(NSString *)tag;\n- (void)removeTagWithIndex:(NSInteger)index;\n-(void)layoutTagviews;\n-(void)setTagStringsSelected:(NSMutableArray *)tagStringsSelected;\n-(NSMutableArray *)tagStrings;\n-(void)finishEditing;\n@end\n"
  },
  {
    "path": "EYTagView/EYTagView.m",
    "content": "//\n//  EYTagView.m\n//  EYTagView_Example\n//\n//  Created by ericyang on 8/9/15.\n//  Copyright (c) 2015 Eric Yang. All rights reserved.\n//\n\n\n\n\n\n#import \"EYTagView.h\"\n#import \"EYTextField.h\"\n\n#ifndef EYLOCALSTRING\n#define EYLOCALSTRING(STR) NSLocalizedString(STR, STR)\n#endif\n\n@interface EYCheckBoxButton :UIButton\n@property (nonatomic, strong) UIColor* colorBg;\n@property (nonatomic, strong) UIColor* colorText;\n@property (nonatomic, strong) UIColor* colorTagUnSelected;\n@property (nonatomic, strong) UIColor* colorTagBorder;\n\n@end\n\n@implementation EYCheckBoxButton\n-(void)setSelected:(BOOL)selected{\n    [super setSelected:selected];\n    if (selected) {\n        [self setBackgroundColor:_colorBg];\n        self.layer.borderColor=_colorBg.CGColor;\n        [self setTitleColor:_colorText forState:UIControlStateSelected];\n    } else {\n        [self setBackgroundColor:COLORRGB(0xffffff)];\n        self.layer.borderColor=_colorTagBorder.CGColor;\n        self.layer.borderWidth=1;\n        [self setTitleColor:_colorTagUnSelected forState:UIControlStateNormal];\n    }\n    [self setNeedsDisplay];\n}\n@end\n\n\n@interface EYTagView()<UITextFieldDelegate>\n@property (nonatomic) CGFloat newHeight;\n@property (nonatomic, strong) UIScrollView* svContainer;\n@property (nonatomic, strong) NSMutableArray *tagStrings;//check whether tag is duplicated\n@property (nonatomic, strong) NSMutableArray *tagButtons;//array of alll tag button\n@property (nonatomic, strong) NSMutableArray *tagStringsSelected;\n@property (assign) NSInteger tagButtonSelecteds;\n\n@end\n\n@implementation EYTagView\n{\n    NSInteger _editingTagIndex;\n    BOOL _isInit;\n}\n\n- (instancetype)initWithCoder:(NSCoder *)aDecoder\n{\n    self = [super initWithCoder:aDecoder];\n    if (self) {\n        [self commonInit];\n    }\n    return self;\n}\n\n- (instancetype)initWithFrame:(CGRect)frame\n{\n    self = [super initWithFrame:frame];\n    if (self) {\n        [self commonInit];\n    }\n    return self;\n}\n\n\n- (void)commonInit\n{\n    _newHeight=self.frame.size.height;\n    _type=EYTagView_Type_Edit;\n    _tagHeight=18;\n    _tagPaddingSize=CGSizeMake(6, 6);\n    _textPaddingSize=CGSizeMake(0, 3);\n    _fontTag=[UIFont systemFontOfSize:14];\n    self.fontInput=[UIFont systemFontOfSize:14];\n    _colorTag=COLORRGB(0xffffff);\n    _colorTagUnselected=COLORRGB(0xa1a2a2);\n    _colorInput=COLORRGB(0x2ab44e);\n    _colorInputPlaceholder=COLORRGB(0x2ab44e);\n    _colorTagBg=COLORRGB(0x2ab44e);\n    _colorTagBoard=COLORRGB(0xdddddd);\n    _colorInputBg=COLORRGB(0xbbbbbb);\n    _colorInputBoard=COLORRGB(0x2ab44e);\n    _viewMaxHeight=130;\n    self.clipsToBounds=YES;\n    self.backgroundColor=COLORRGB(0xffffff);\n    _maxSelected = 0;\n    _tagButtonSelecteds = 0;\n    \n    _tagButtons=[NSMutableArray new];\n    _tagArrows=[NSMutableArray new];\n    _tagStrings=[NSMutableArray new];\n    _tagStringsSelected=[NSMutableArray new];\n    \n    {\n        UIScrollView* sv = [[UIScrollView alloc] initWithFrame:self.bounds];\n        sv.autoresizingMask=UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;\n        sv.contentSize=sv.frame.size;\n        sv.contentSize=CGSizeMake(sv.frame.size.width, 600);\n        sv.indicatorStyle=UIScrollViewIndicatorStyleDefault;\n        sv.backgroundColor = self.backgroundColor;\n        sv.showsVerticalScrollIndicator = YES;\n        sv.showsHorizontalScrollIndicator = NO;\n        [self addSubview:sv];\n        _svContainer=sv;\n    }\n    {\n        UITextField* tf = [[EYTextField alloc] initWithFrame:CGRectMake(0, 0, 0, _tagHeight)];\n        tf.autocorrectionType = UITextAutocorrectionTypeNo;\n        [tf addTarget:self action:@selector(textFieldDidChange:)forControlEvents:UIControlEventEditingChanged];\n        tf.delegate = self;\n        tf.placeholder=EYLOCALSTRING(@\"Add Tag\");\n        tf.returnKeyType = UIReturnKeyDone;\n        [_svContainer addSubview:tf];\n        _tfInput=tf;\n    }\n    {\n        UITapGestureRecognizer* panGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector\n        (handlerTapGesture:)];\n        panGestureRecognizer.numberOfTapsRequired=1;\n        [self addGestureRecognizer:panGestureRecognizer];\n    }\n}\n#pragma mark -\n-(NSMutableArray *)tagStrings{\n      switch (_type) {\n        case EYTagView_Type_Edit:\n        case EYTagView_Type_Edit_Only_Delete:\n        {\n            return _tagStrings;\n        }\n            break;\n        case EYTagView_Type_Display:\n        {\n            return nil;\n        }\n            break;\n        case EYTagView_Type_Single_Selected:\n        {\n            [_tagStringsSelected removeAllObjects];\n            for (EYCheckBoxButton* button in _tagButtons) {\n                if (button.selected) {\n                    [_tagStringsSelected addObject:button.titleLabel.text];\n                    break;\n                }\n            }\n            return _tagStringsSelected;\n        }\n            break;\n        case EYTagView_Type_Multi_Selected:\n        {\n            [_tagStringsSelected removeAllObjects];\n            for (EYCheckBoxButton* button in _tagButtons) {\n                if (button.selected) {\n                    [_tagStringsSelected addObject:button.titleLabel.text];\n                }\n            }\n            return _tagStringsSelected;\n        }\n              break;\n        case EYTagView_Type_Multi_Selected_Edit:\n        {\n            [_tagStringsSelected removeAllObjects];\n            for (EYCheckBoxButton* button in _tagButtons) {\n                if (button.selected) {\n                    [_tagStringsSelected addObject:button.titleLabel.text];\n                }\n            }\n            return _tagStringsSelected;\n        }\n        default:\n        {\n            \n        }\n            break;\n    }\n    return nil;\n}\n-(UIView*)newArrowView{\n    UIView* vArrow=[[UIView alloc]initWithFrame:CGRectMake(0, 0, _tagHeight*1.5f, _tagHeight)];\n    vArrow.backgroundColor=[UIColor clearColor];\n    {\n        UILabel* lb=[[UILabel alloc]initWithFrame:vArrow.frame];\n        lb.textAlignment=NSTextAlignmentCenter;\n        lb.text=@\"···>\";\n        lb.font=[UIFont systemFontOfSize:13];\n        lb.textColor=_colorTagBg;\n        lb.backgroundColor=[UIColor clearColor];\n        [vArrow addSubview:lb];\n    }\n    \n    \n    return vArrow;\n}\n\n-(void)layoutTagviews{\n    float oldContentHeight=_svContainer.contentSize.height;\n    float offsetX=_tagPaddingSize.width,offsetY=_tagPaddingSize.height;\n    \n    if (_type==EYTagView_Type_Flow){\n        for (UIView* v in _tagArrows) {\n            [v removeFromSuperview];\n        }\n        [_tagArrows removeAllObjects];\n\n    }\n    \n    BOOL needLayoutAgain=NO;// just for too large text\n    BOOL shouldFinishLayout=NO;//just for break line\n    int currentLine=0;\n    for (int i=0; i<_tagButtons.count; i++) {\n        EYCheckBoxButton* tagButton=_tagButtons[i];\n        tagButton.hidden=NO;\n        if (shouldFinishLayout) {\n            tagButton.hidden=YES;\n            continue;\n        }\n        CGRect frame=tagButton.frame;\n        \n        if (tagButton.frame.size.width+_tagPaddingSize.width*2>_svContainer.contentSize.width) {\n            NSLog(@\"!!!  tagButton width tooooooooo large\");\n            [tagButton removeFromSuperview];\n            [_tagButtons removeObjectAtIndex:i];\n            [_tagStrings removeObjectAtIndex:i];\n            needLayoutAgain=YES;\n            break;\n        }else{\n            //button\n            if ((offsetX+tagButton.frame.size.width+_tagPaddingSize.width)\n                <=_svContainer.contentSize.width) {\n                frame.origin.x=offsetX;\n                frame.origin.y=offsetY;\n                offsetX+=tagButton.frame.size.width+_tagPaddingSize.width;\n            }else{//break line\n                currentLine++;\n                if (_numberOfLines!=0\n                    && _numberOfLines<=currentLine) {\n                    shouldFinishLayout=YES;\n                    if (_type==EYTagView_Type_Flow\n                        && i!=0) {//not first one\n                        [_tagArrows.lastObject removeFromSuperview];\n                        [_tagArrows removeLastObject];\n                    }\n                    tagButton.hidden=YES;\n                    continue;\n                }\n                \n                offsetX=_tagPaddingSize.width;\n                offsetY+=_tagHeight+_tagPaddingSize.height;\n                \n                frame.origin.x=offsetX;\n                frame.origin.y=offsetY;\n                offsetX+=tagButton.frame.size.width+_tagPaddingSize.width;\n            }\n            tagButton.frame=frame;\n            //arrow\n            if (_type==EYTagView_Type_Flow\n                && i!=_tagButtons.count-1) {\n                UIView* vArrow=[self newArrowView];\n                \n                frame=vArrow.frame;\n                if ((offsetX+vArrow.frame.size.width+_tagPaddingSize.width)\n                    <=_svContainer.contentSize.width) {\n                    frame.origin.x=offsetX;\n                    frame.origin.y=offsetY;\n                    offsetX+=vArrow.frame.size.width+_tagPaddingSize.width;\n                }else{//break line\n                    currentLine++;\n                    if (_numberOfLines!=0\n                        && _numberOfLines<=currentLine) {\n                        shouldFinishLayout=YES;\n                        continue;\n                    }\n                    \n                    offsetX=_tagPaddingSize.width;\n                    offsetY+=_tagHeight+_tagPaddingSize.height;\n                    \n                    frame.origin.x=offsetX;\n                    frame.origin.y=offsetY;\n                    offsetX+=vArrow.frame.size.width+_tagPaddingSize.width;\n                }\n                vArrow.frame=frame;\n                [_tagArrows addObject:vArrow];\n                [_svContainer addSubview:vArrow];\n            }\n        }\n    }\n    if (needLayoutAgain) {\n        [self layoutTagviews];\n        return;\n    }\n    //input view\n    _tfInput.hidden=(_type!=EYTagView_Type_Edit &&\n                     _type!=EYTagView_Type_Multi_Selected_Edit);\n    if (_type==EYTagView_Type_Edit || _type==EYTagView_Type_Multi_Selected_Edit) {\n        _tfInput.backgroundColor=_colorInputBg;\n        _tfInput.textColor=_colorInput;\n        _tfInput.font=_fontInput;\n        [_tfInput setValue:_colorInputPlaceholder forKeyPath:@\"_placeholderLabel.textColor\"];\n        \n        _tfInput.layer.cornerRadius = _tfInput.frame.size.height * 0.5f;\n        _tfInput.layer.borderColor=_colorInputBoard.CGColor;\n        _tfInput.layer.borderWidth=1;\n        {\n            CGRect frame=_tfInput.frame;\n            frame.size.width = [_tfInput.text sizeWithAttributes:@{NSFontAttributeName:_fontInput}].width + (_tfInput.layer.cornerRadius * 2.0f) + _textPaddingSize.width*2;\n            //place holde width\n            frame.size.width=MAX(frame.size.width, [EYLOCALSTRING(@\"Add Tag\") sizeWithAttributes:@{NSFontAttributeName:_fontInput}].width + (_tfInput.layer.cornerRadius * 2.0f) + _textPaddingSize.width*2);\n            _tfInput.frame=frame;\n        }\n        \n        if (_tfInput.frame.size.width+_tagPaddingSize.width*2>_svContainer.contentSize.width) {\n            NSLog(@\"!!!  _tfInput width tooooooooo large\");\n            \n        }else{\n            CGRect frame=_tfInput.frame;\n            if ((offsetX+_tfInput.frame.size.width+_tagPaddingSize.width)\n                <=_svContainer.contentSize.width) {\n                frame.origin.x=offsetX;\n                frame.origin.y=offsetY;\n                offsetX+=_tfInput.frame.size.width+_tagPaddingSize.width;\n            }else{\n                offsetX=_tagPaddingSize.width;\n                offsetY+=_tagHeight+_tagPaddingSize.height;\n                \n                frame.origin.x=offsetX;\n                frame.origin.y=offsetY;\n                offsetX+=_tfInput.frame.size.width+_tagPaddingSize.width;\n            }\n            _tfInput.frame=frame;\n            \n        }\n        \n    }\n    \n    _svContainer.contentSize=CGSizeMake(_svContainer.frame.size.width, offsetY+_tagHeight+_tagPaddingSize.height);\n    {\n        CGRect frame=_svContainer.frame;\n        frame.size.height=_svContainer.contentSize.height;\n        frame.size.height=MIN(frame.size.height, _viewMaxHeight);\n        _svContainer.frame=frame;\n    }\n    \n    float oldHeight=self.frame.size.height;\n    float newHeight=_svContainer.frame.size.height;\n    \n    if (self.translatesAutoresizingMaskIntoConstraints)\n    {//autosizing\n        {\n            CGRect frame=self.frame;\n            frame.size.height=newHeight;\n            self.frame=frame;\n        }\n        if (!_isInit\n            && oldHeight!= newHeight\n            && _delegate) {\n            [_delegate heightDidChangedTagView:self];\n            \n        }else{\n            \n        }\n    }else\n    {//auto layout\n        if (oldHeight!= newHeight){\n            _newHeight = newHeight;\n            [self invalidateIntrinsicContentSize];\n        }\n    }\n    \n   \n   \n    if (oldContentHeight != _svContainer.contentSize.height) {\n        CGPoint bottomOffset = CGPointMake(0, _svContainer.contentSize.height - _svContainer.bounds.size.height);\n        [_svContainer setContentOffset:bottomOffset animated:YES];\n    }\n}\n\n- (EYCheckBoxButton *)tagButtonWithTag:(NSString *)tag\n{\n    EYCheckBoxButton *tagBtn = [[EYCheckBoxButton alloc] init];\n    tagBtn.colorBg=_colorTagBg;\n    tagBtn.colorTagUnSelected=_colorTagUnselected;\n    tagBtn.colorTagBorder=_colorTagBoard;\n    \n    tagBtn.colorText=_colorTag;\n    tagBtn.selected=YES;\n    [tagBtn.titleLabel setFont:_fontTag];\n    [tagBtn setBackgroundColor:_colorTagBg];\n    [tagBtn setTitleColor:_colorTag forState:UIControlStateNormal];\n    [tagBtn addTarget:self action:@selector(handlerTagButtonEvent:) forControlEvents:UIControlEventTouchUpInside];\n    [tagBtn setTitle:tag forState:UIControlStateNormal];\n    \n    CGRect btnFrame;\n    btnFrame.size.height = _tagHeight;\n    tagBtn.layer.cornerRadius = btnFrame.size.height * 0.5f;\n    \n    btnFrame.size.width = [tagBtn.titleLabel.text sizeWithAttributes:@{NSFontAttributeName:_fontTag}].width + (tagBtn.layer.cornerRadius * 2.0f) + _textPaddingSize.width*2;\n    \n    tagBtn.frame=btnFrame;\n    return tagBtn;\n}\n- (void)handlerTagButtonEvent:(EYCheckBoxButton*)sender\n{\n    \n}\n#pragma mark action\n\n- (void)addTags:(NSArray *)tags{\n    _isInit=YES;\n    for (NSString *tag in tags)\n    {\n        [self addTagToLast:tag];\n    }\n    [self layoutTagviews];\n    _isInit=NO;\n}\n- (void)addTags:(NSArray *)tags selectedTags:(NSArray*)selectedTags{\n    [self addTags:tags];\n    self.tagStringsSelected=[NSMutableArray arrayWithArray:selectedTags];\n}\n- (void)addTagToLast:(NSString *)tag{\n    NSArray *result = [_tagStrings filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@\"SELF == %@\", tag]];\n    if (result.count == 0)\n    {\n        [_tagStrings addObject:tag];\n        \n        EYCheckBoxButton* tagButton=[self tagButtonWithTag:tag];\n        [tagButton addTarget:self action:@selector(handlerButtonAction:) forControlEvents:UIControlEventTouchUpInside];\n        [_svContainer addSubview:tagButton];\n        [_tagButtons addObject:tagButton];\n        \n        switch (_type) {\n            case EYTagView_Type_Single_Selected:\n            case EYTagView_Type_Multi_Selected:\n            {\n                tagButton.selected=NO;\n            }\n                break;\n            default:\n                break;\n        }\n    }\n    [self layoutTagviews];\n}\n- (void)removeAllTags{\n    _isInit=YES;\n    [_tagStrings removeAllObjects];\n    for (UIView* v in _tagArrows) {\n        [v removeFromSuperview];\n    }\n    [_tagArrows removeAllObjects];\n    for (UIButton* bt in _tagButtons) {\n        [bt removeFromSuperview];\n        \n    }\n    [_tagButtons removeAllObjects];\n    [self layoutTagviews];\n    _isInit=NO;\n}\n- (void)removeTags:(NSArray *)tags{\n    for (NSString *tag in tags)\n    {\n        [self removeTag:tag];\n    }\n    [self layoutTagviews];\n}\n- (void)removeTagWithIndex:(NSInteger)index{\n    [self removeTag:_tagStrings[index]];\n}\n- (void)removeTag:(NSString *)tag{\n    NSArray *result = [_tagStrings filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@\"SELF == %@\", tag]];\n    if (result)\n    {\n        NSInteger index=[_tagStrings indexOfObject:tag];\n        [_tagStrings removeObjectAtIndex:index];\n        [_tagButtons[index] removeFromSuperview];\n        [_tagButtons removeObjectAtIndex:index];\n    }\n    [self layoutTagviews];\n}\n\n\n-(void)handlerButtonAction:(EYCheckBoxButton*)tagButton{\n    switch (_type) {\n        case EYTagView_Type_Edit:\n        case EYTagView_Type_Edit_Only_Delete:\n        {\n            [self becomeFirstResponder];\n            _editingTagIndex=[_tagButtons indexOfObject:tagButton];\n            CGRect buttonFrame=tagButton.frame;\n            buttonFrame.size.height-=5;\n            \n            UIMenuController *menuController = [UIMenuController sharedMenuController];\n            UIMenuItem *resetMenuItem = [[UIMenuItem alloc] initWithTitle:@\"Delete\" action:@selector(deleteItemClicked:)];\n            \n            NSAssert([self becomeFirstResponder], @\"Sorry, UIMenuController will not work with %@ since it cannot become first responder\", self);\n            [menuController setMenuItems:[NSArray arrayWithObject:resetMenuItem]];\n            [menuController setTargetRect:buttonFrame inView:_svContainer];\n            [menuController setMenuVisible:YES animated:YES];\n        }\n            break;\n        case EYTagView_Type_Single_Selected:\n        {\n            if (tagButton.selected) {\n                tagButton.selected=NO;\n            }else{\n                for (EYCheckBoxButton* button in _tagButtons) {\n                    button.selected=NO;\n                }\n                tagButton.colorBg=_colorTagBg;\n                tagButton.selected=YES;\n            }\n        }\n            break;\n        case EYTagView_Type_Multi_Selected:\n        {\n            tagButton.selected=!tagButton.selected;\n            //如果有标签数量选择限制\n            if (_maxSelected != 0) {\n                if (tagButton.selected == YES) {\n                    _tagButtonSelecteds += 1;\n                }else if(tagButton.selected == NO){\n                    _tagButtonSelecteds -= 1;\n                }\n                if (_tagButtonSelecteds > _maxSelected) {\n                    tagButton.selected=!tagButton.selected;\n                    UIAlertView* alert=[[UIAlertView alloc]initWithTitle:nil message:[NSString stringWithFormat:@\"您最多只能选择%ld个标签\",_maxSelected] delegate:nil cancelButtonTitle:@\"确定\" otherButtonTitles: nil];\n                    [alert show];\n                    _tagButtonSelecteds -= 1;\n                }\n            }\n        }\n            break;\n        case EYTagView_Type_Multi_Selected_Edit:\n        {\n            tagButton.selected=!tagButton.selected;\n        }\n            break;\n        default:\n        {\n            \n        }\n            break;\n    }\n    \n}\n\n-(void)finishEditing{\n    if ((_type==EYTagView_Type_Edit || _type==EYTagView_Type_Multi_Selected_Edit) &&\n        _tfInput.isFirstResponder && _tfInput.text) {\n        NSString* pureStr=[_tfInput.text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];\n        if (pureStr\n            && ![pureStr isEqualToString:@\"\"]) {\n            [self addTagToLast:pureStr];\n            _tfInput.text=nil;\n            [self layoutTagviews];\n            \n        }\n    }\n    [self.tfInput resignFirstResponder];\n}\n\n-(NSArray *)getTagTexts{\n    NSMutableArray *texts = [NSMutableArray array];\n    for (UIButton *bt in self.tagButtons) {\n        if (bt.selected) {\n            [texts addObject:bt.titleLabel.text];\n        }\n    }\n    return [NSArray arrayWithArray:texts];\n}\n\n#pragma mark UITextFieldDelegate\n\n\n- (BOOL)textFieldShouldReturn:(UITextField *)textField {\n    [textField resignFirstResponder];\n    if (!textField.text\n        || [textField.text isEqualToString:@\"\"]) {\n        return NO;\n    }\n    [self addTagToLast:textField.text];\n    textField.text=nil;\n    [self layoutTagviews];\n    return NO;\n}\n\n-(void)textFieldDidChange:(UITextField*)textField{\n    [self layoutTagviews];\n}\n- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {\n    \n    NSString* sting2= [textField.text stringByReplacingCharactersInRange:range withString:string];\n    \n    CGRect frame=_tfInput.frame;\n    frame.size.width = [sting2 sizeWithAttributes:@{NSFontAttributeName:_fontInput}].width + (_tfInput.layer.cornerRadius * 2.0f) + _textPaddingSize.width*2;\n    frame.size.width=MAX(frame.size.width, [EYLOCALSTRING(@\"Add Tag\") sizeWithAttributes:@{NSFontAttributeName:_fontInput}].width + (_tfInput.layer.cornerRadius * 2.0f) + _textPaddingSize.width*2);\n    \n    if (frame.size.width+_tagPaddingSize.width*2>_svContainer.contentSize.width) {\n        NSLog(@\"!!!  _tfInput width tooooooooo large\");\n        return NO;\n    }\n    else{\n        return YES;\n    }\n}\n-(void)textFieldDidBeginEditing:(UITextField *)textField{\n    if (_delegate && [_delegate respondsToSelector:@selector(tagDidBeginEditing:)]) {\n        [_delegate tagDidBeginEditing:self];\n    }\n}\n\n\n-(void)textFieldDidEndEditing:(UITextField *)textField{\n    if (_delegate && [_delegate respondsToSelector:@selector(tagDidEndEditing:)]) {\n        [_delegate tagDidEndEditing:self];\n    }\n}\n#pragma mark UIMenuController\n\n- (void) deleteItemClicked:(id) sender {\n    if (_delegate && [_delegate respondsToSelector:@selector(willRemoveTag:index:)]) {\n        if ([_delegate willRemoveTag:self index:_editingTagIndex]) {\n            [self removeTag:_tagStrings[_editingTagIndex]];\n        }\n    }\n}\n- (BOOL) canPerformAction:(SEL)selector withSender:(id) sender {\n    if (selector == @selector(deleteItemClicked:) /*|| selector == @selector(copy:)*/ /*<--enable that if you want the copy item */) {\n        return YES;\n    }\n    return NO;\n}\n- (BOOL) canBecomeFirstResponder {\n    return YES;\n}\n- (void)handlerTapGesture:(UIPanGestureRecognizer *)recognizer {\n    [[UIMenuController sharedMenuController] setMenuVisible:NO animated:YES];\n    if ((_type==EYTagView_Type_Edit || _type==EYTagView_Type_Multi_Selected_Edit)\n        &&  _tfInput.isFirstResponder\n        && _tfInput.text) {\n        NSString* pureStr=[_tfInput.text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];\n        if (pureStr\n            && ![pureStr isEqualToString:@\"\"]) {\n            [self addTagToLast:pureStr];\n            _tfInput.text=nil;\n            [self layoutTagviews];\n            \n        }\n    }\n}\n#pragma mark getter & setter\n-(void)setBackgroundColor:(UIColor *)backgroundColor{\n    [super setBackgroundColor:backgroundColor];\n    _svContainer.backgroundColor=backgroundColor;\n}\n-(void)setType:(EYTagView_Type)type{\n    _type=type;\n    if (_type==EYTagView_Type_Display\n        || _type==EYTagView_Type_Flow) {\n        self.userInteractionEnabled=NO;\n    }else{\n        self.userInteractionEnabled=YES;\n    }\n    \n    switch (_type) {\n        case EYTagView_Type_Edit:\n        case EYTagView_Type_Edit_Only_Delete:\n        {\n            for (UIButton* button in _tagButtons) {\n                button.selected=YES;\n            }\n        }\n            break;\n        case EYTagView_Type_Display:\n        {\n            for (UIButton* button in _tagButtons) {\n                button.selected=YES;\n            }\n        }\n            break;\n        case EYTagView_Type_Single_Selected:\n        {\n            for (UIButton* button in _tagButtons) {\n                button.selected=[_tagStringsSelected containsObject:button.titleLabel.text];\n            }\n        }\n            break;\n        case EYTagView_Type_Multi_Selected:\n        {\n            for (UIButton* button in _tagButtons) {\n                button.selected=[_tagStringsSelected containsObject:button.titleLabel.text];\n            }\n        }\n            break;\n        default:\n        {\n            \n        }\n            break;\n    }\n    [self layoutTagviews];\n}\n-(void)setColorTagBg:(UIColor *)colorTagBg{\n    _colorTagBg=colorTagBg;\n    for (EYCheckBoxButton* button in _tagButtons) {\n        button.colorBg=colorTagBg;\n    }\n}\n-(void)setColorTag:(UIColor *)colorTag{\n    _colorTag=colorTag;\n    for (EYCheckBoxButton* button in _tagButtons) {\n        button.colorText=colorTag;\n    }\n}\n-(void)setTagStringsSelected:(NSMutableArray *)tagStringsSelected{\n    _tagStringsSelected=tagStringsSelected;\n    switch (_type) {\n        case EYTagView_Type_Single_Selected:\n        case EYTagView_Type_Multi_Selected:\n        {\n            for (UIButton* button in _tagButtons) {\n                button.selected=[tagStringsSelected containsObject:button.titleLabel.text];\n            }\n        }\n            break;\n        default:\n        {\n            \n        }\n            break;\n    }\n}\n#pragma mark autolayout\n-(CGSize)intrinsicContentSize{//UIViewNoIntrinsicMetric\n    if (_numberOfLines==0) {\n        return CGSizeMake(UIViewNoIntrinsicMetric, _newHeight);\n    } else {\n        return CGSizeMake((_tagPaddingSize.height+_tagHeight)*_numberOfLines+_tagPaddingSize.height, _newHeight);\n    }\n}\n-(void)layoutSubviews{\n    [self layoutTagviews];\n}\n@end\n"
  },
  {
    "path": "EYTagView/EYTextField.h",
    "content": "//\n//  EYTextField.h\n//  EYPopupView_Example\n//\n//  Created by ericyang on 8/14/15.\n//  Copyright (c) 2015 Eric Yang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface EYTextField : UITextField\n\n@end\n"
  },
  {
    "path": "EYTagView/EYTextField.m",
    "content": "//\n//  EYTextField.m\n//  EYPopupView_Example\n//\n//  Created by ericyang on 8/14/15.\n//  Copyright (c) 2015 Eric Yang. All rights reserved.\n//\n\n#import \"EYTextField.h\"\n\n@implementation EYTextField\n\n// placeholder position\n- (CGRect)textRectForBounds:(CGRect)bounds {\n    return CGRectInset( bounds , 9 , 0 );\n}\n\n// text position\n- (CGRect)editingRectForBounds:(CGRect)bounds {\n    return CGRectInset( bounds , 9 , 0 );\n}\n\n@end\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/AppDelegate.h",
    "content": "//\n//  AppDelegate.h\n//  EYTagView_Example\n//\n//  Created by ericyang on 8/9/15.\n//  Copyright (c) 2015 Eric Yang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n\n@end\n\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/AppDelegate.m",
    "content": "//\n//  AppDelegate.m\n//  EYTagView_Example\n//\n//  Created by ericyang on 8/9/15.\n//  Copyright (c) 2015 Eric Yang. All rights reserved.\n//\n\n#import \"AppDelegate.h\"\n\n@interface AppDelegate ()\n\n@end\n\n@implementation AppDelegate\n\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n    // Override point for customization after application launch.\n    return YES;\n}\n\n- (void)applicationWillResignActive:(UIApplication *)application {\n    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.\n    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.\n}\n\n- (void)applicationDidEnterBackground:(UIApplication *)application {\n    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.\n    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n}\n\n- (void)applicationWillEnterForeground:(UIApplication *)application {\n    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.\n}\n\n- (void)applicationDidBecomeActive:(UIApplication *)application {\n    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.\n}\n\n- (void)applicationWillTerminate:(UIApplication *)application {\n    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n}\n\n@end\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/Base.lproj/LaunchScreen.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" version=\"3.0\" toolsVersion=\"8191\" systemVersion=\"15A284\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"8154\"/>\n        <capability name=\"Constraints with non-1.0 multipliers\" minToolsVersion=\"5.1\"/>\n    </dependencies>\n    <objects>\n        <placeholder placeholderIdentifier=\"IBFilesOwner\" id=\"-1\" userLabel=\"File's Owner\"/>\n        <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"-2\" customClass=\"UIResponder\"/>\n        <view contentMode=\"scaleToFill\" id=\"iN0-l3-epB\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"480\" height=\"480\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"  Copyright (c) 2015 Eric Yang. All rights reserved.\" textAlignment=\"center\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"9\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8ie-xW-0ye\">\n                    <rect key=\"frame\" x=\"20\" y=\"439\" width=\"441\" height=\"21\"/>\n                    <animations/>\n                    <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                    <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n                <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"EYTagView_Example\" textAlignment=\"center\" lineBreakMode=\"middleTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"18\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"kId-c2-rCX\">\n                    <rect key=\"frame\" x=\"20\" y=\"140\" width=\"441\" height=\"43\"/>\n                    <animations/>\n                    <fontDescription key=\"fontDescription\" type=\"boldSystem\" pointSize=\"36\"/>\n                    <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n            </subviews>\n            <animations/>\n            <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n            <constraints>\n                <constraint firstItem=\"kId-c2-rCX\" firstAttribute=\"centerY\" secondItem=\"iN0-l3-epB\" secondAttribute=\"bottom\" multiplier=\"1/3\" constant=\"1\" id=\"5cJ-9S-tgC\"/>\n                <constraint firstAttribute=\"centerX\" secondItem=\"kId-c2-rCX\" secondAttribute=\"centerX\" id=\"Koa-jz-hwk\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"8ie-xW-0ye\" secondAttribute=\"bottom\" constant=\"20\" id=\"Kzo-t9-V3l\"/>\n                <constraint firstItem=\"8ie-xW-0ye\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"MfP-vx-nX0\"/>\n                <constraint firstAttribute=\"centerX\" secondItem=\"8ie-xW-0ye\" secondAttribute=\"centerX\" id=\"ZEH-qu-HZ9\"/>\n                <constraint firstItem=\"kId-c2-rCX\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"fvb-Df-36g\"/>\n            </constraints>\n            <nil key=\"simulatedStatusBarMetrics\"/>\n            <freeformSimulatedSizeMetrics key=\"simulatedDestinationMetrics\"/>\n            <point key=\"canvasLocation\" x=\"548\" y=\"455\"/>\n        </view>\n    </objects>\n</document>\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/Base.lproj/Main.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"8191\" systemVersion=\"15A284\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" initialViewController=\"2BK-85-JzC\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"8154\"/>\n        <capability name=\"Constraints to layout margins\" minToolsVersion=\"6.0\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"ufC-wZ-h7g\">\n            <objects>\n                <viewController id=\"vXZ-lx-hvc\" customClass=\"ViewController\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"jyV-Pf-zRb\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"2fi-mo-0CV\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"kh9-bI-dsS\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"600\" height=\"600\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                        <subviews>\n                            <view contentMode=\"scaleToFill\" misplaced=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"sGj-lX-OhZ\" customClass=\"EYTagView\">\n                                <rect key=\"frame\" x=\"56\" y=\"80\" width=\"507\" height=\"135\"/>\n                                <animations/>\n                                <color key=\"backgroundColor\" red=\"0.87369791666666663\" green=\"0.87369791666666663\" blue=\"0.87369791666666663\" alpha=\"1\" colorSpace=\"calibratedRGB\"/>\n                                <constraints>\n                                    <constraint firstAttribute=\"width\" constant=\"230\" id=\"PHz-Hr-tsV\"/>\n                                    <constraint firstAttribute=\"height\" priority=\"1\" constant=\"135\" id=\"WbM-Vc-U9x\"/>\n                                </constraints>\n                                <variation key=\"default\">\n                                    <mask key=\"constraints\">\n                                        <exclude reference=\"PHz-Hr-tsV\"/>\n                                    </mask>\n                                </variation>\n                            </view>\n                            <view contentMode=\"scaleToFill\" misplaced=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"qDV-dO-LPo\" userLabel=\"Tag View2\" customClass=\"EYTagView\">\n                                <rect key=\"frame\" x=\"56\" y=\"277\" width=\"230\" height=\"135\"/>\n                                <animations/>\n                                <color key=\"backgroundColor\" red=\"0.87369791669999997\" green=\"0.87369791669999997\" blue=\"0.87369791669999997\" alpha=\"1\" colorSpace=\"calibratedRGB\"/>\n                                <constraints>\n                                    <constraint firstAttribute=\"height\" priority=\"249\" constant=\"135\" id=\"Iyd-Wc-GAE\"/>\n                                    <constraint firstAttribute=\"height\" relation=\"greaterThanOrEqual\" constant=\"135\" id=\"eam-7G-nP0\"/>\n                                    <constraint firstAttribute=\"width\" constant=\"230\" id=\"jjP-Sl-dca\"/>\n                                    <constraint firstAttribute=\"width\" relation=\"greaterThanOrEqual\" constant=\"230\" id=\"nd7-B3-6rc\"/>\n                                </constraints>\n                                <variation key=\"default\">\n                                    <mask key=\"constraints\">\n                                        <exclude reference=\"eam-7G-nP0\"/>\n                                        <exclude reference=\"nd7-B3-6rc\"/>\n                                    </mask>\n                                </variation>\n                            </view>\n                            <button opaque=\"NO\" contentMode=\"scaleToFill\" misplaced=\"YES\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"d97-yo-As0\">\n                                <rect key=\"frame\" x=\"138\" y=\"429\" width=\"30\" height=\"30\"/>\n                                <animations/>\n                                <constraints>\n                                    <constraint firstAttribute=\"width\" constant=\"30\" id=\"J0f-8P-GfX\"/>\n                                    <constraint firstAttribute=\"height\" constant=\"30\" id=\"yXt-bd-VXm\"/>\n                                </constraints>\n                                <state key=\"normal\" title=\"test\">\n                                    <color key=\"titleShadowColor\" white=\"0.5\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                                </state>\n                                <connections>\n                                    <action selector=\"test:\" destination=\"vXZ-lx-hvc\" eventType=\"touchUpInside\" id=\"QBG-9g-ATQ\"/>\n                                </connections>\n                            </button>\n                            <label opaque=\"NO\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" misplaced=\"YES\" text=\"auto layout test auto layout test auto layout test auto layout test auto layout test \" lineBreakMode=\"tailTruncation\" numberOfLines=\"0\" baselineAdjustment=\"alignBaselines\" adjustsFontSizeToFit=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"LVG-rX-BcK\">\n                                <rect key=\"frame\" x=\"56\" y=\"28\" width=\"220\" height=\"43\"/>\n                                <animations/>\n                                <color key=\"backgroundColor\" red=\"0.99215686270000003\" green=\"0.51372549020000002\" blue=\"0.0\" alpha=\"1\" colorSpace=\"calibratedRGB\"/>\n                                <constraints>\n                                    <constraint firstAttribute=\"width\" constant=\"220\" id=\"S8B-KA-TNa\"/>\n                                    <constraint firstAttribute=\"height\" relation=\"greaterThanOrEqual\" constant=\"10\" id=\"ory-yl-Zjn\"/>\n                                </constraints>\n                                <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"12\"/>\n                                <color key=\"textColor\" red=\"0.0\" green=\"0.0\" blue=\"0.0\" alpha=\"1\" colorSpace=\"calibratedRGB\"/>\n                                <nil key=\"highlightedColor\"/>\n                            </label>\n                            <segmentedControl opaque=\"NO\" contentMode=\"scaleToFill\" misplaced=\"YES\" contentHorizontalAlignment=\"left\" contentVerticalAlignment=\"top\" segmentControlStyle=\"plain\" selectedSegmentIndex=\"0\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"xxm-ez-MoY\">\n                                <rect key=\"frame\" x=\"21\" y=\"232\" width=\"345\" height=\"29\"/>\n                                <animations/>\n                                <constraints>\n                                    <constraint firstAttribute=\"width\" constant=\"345\" id=\"VRF-1N-Rdg\"/>\n                                    <constraint firstAttribute=\"height\" constant=\"28\" id=\"aBq-42-o5I\"/>\n                                </constraints>\n                                <segments>\n                                    <segment title=\"edit\"/>\n                                    <segment title=\"show\"/>\n                                    <segment title=\"radio\"/>\n                                    <segment title=\"checkbox\"/>\n                                    <segment title=\"multi edit\"/>\n                                </segments>\n                                <variation key=\"default\">\n                                    <mask key=\"constraints\">\n                                        <exclude reference=\"VRF-1N-Rdg\"/>\n                                    </mask>\n                                </variation>\n                                <connections>\n                                    <action selector=\"handlerSegmentAction:\" destination=\"vXZ-lx-hvc\" eventType=\"valueChanged\" id=\"mKx-6w-X2q\"/>\n                                </connections>\n                            </segmentedControl>\n                        </subviews>\n                        <animations/>\n                        <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n                        <constraints>\n                            <constraint firstItem=\"d97-yo-As0\" firstAttribute=\"top\" secondItem=\"qDV-dO-LPo\" secondAttribute=\"bottom\" constant=\"17\" id=\"1xq-XJ-GP8\"/>\n                            <constraint firstItem=\"xxm-ez-MoY\" firstAttribute=\"leading\" secondItem=\"kh9-bI-dsS\" secondAttribute=\"leadingMargin\" constant=\"5\" id=\"Ftf-cj-dee\"/>\n                            <constraint firstItem=\"LVG-rX-BcK\" firstAttribute=\"leading\" secondItem=\"kh9-bI-dsS\" secondAttribute=\"leadingMargin\" constant=\"40\" id=\"GYf-9a-P7D\"/>\n                            <constraint firstItem=\"xxm-ez-MoY\" firstAttribute=\"top\" secondItem=\"sGj-lX-OhZ\" secondAttribute=\"bottom\" constant=\"17\" id=\"Gps-wR-T4h\"/>\n                            <constraint firstItem=\"LVG-rX-BcK\" firstAttribute=\"leading\" secondItem=\"kh9-bI-dsS\" secondAttribute=\"leadingMargin\" constant=\"10\" id=\"H9Y-Gc-EGd\"/>\n                            <constraint firstItem=\"qDV-dO-LPo\" firstAttribute=\"top\" secondItem=\"xxm-ez-MoY\" secondAttribute=\"bottom\" constant=\"17\" id=\"Kgr-7U-cxy\"/>\n                            <constraint firstItem=\"qDV-dO-LPo\" firstAttribute=\"leading\" secondItem=\"kh9-bI-dsS\" secondAttribute=\"leadingMargin\" constant=\"40\" id=\"NlG-S7-RUc\"/>\n                            <constraint firstItem=\"LVG-rX-BcK\" firstAttribute=\"top\" secondItem=\"jyV-Pf-zRb\" secondAttribute=\"bottom\" constant=\"7\" id=\"OSz-EU-WP8\"/>\n                            <constraint firstItem=\"d97-yo-As0\" firstAttribute=\"leading\" secondItem=\"kh9-bI-dsS\" secondAttribute=\"leadingMargin\" constant=\"122\" id=\"bFX-lm-tEp\"/>\n                            <constraint firstItem=\"sGj-lX-OhZ\" firstAttribute=\"top\" secondItem=\"LVG-rX-BcK\" secondAttribute=\"bottom\" constant=\"10\" id=\"bmj-MH-dKS\"/>\n                            <constraint firstItem=\"sGj-lX-OhZ\" firstAttribute=\"leading\" secondItem=\"kh9-bI-dsS\" secondAttribute=\"leading\" constant=\"56\" id=\"brq-g0-l7z\"/>\n                            <constraint firstAttribute=\"trailingMargin\" secondItem=\"xxm-ez-MoY\" secondAttribute=\"trailing\" constant=\"5\" id=\"ehF-nE-mJK\"/>\n                            <constraint firstAttribute=\"trailingMargin\" secondItem=\"sGj-lX-OhZ\" secondAttribute=\"trailing\" constant=\"21\" id=\"x4r-eW-Jku\"/>\n                        </constraints>\n                        <variation key=\"default\">\n                            <mask key=\"constraints\">\n                                <exclude reference=\"H9Y-Gc-EGd\"/>\n                            </mask>\n                        </variation>\n                    </view>\n                    <connections>\n                        <outlet property=\"tagView\" destination=\"sGj-lX-OhZ\" id=\"0qo-PV-flH\"/>\n                        <outlet property=\"tagView2\" destination=\"qDV-dO-LPo\" id=\"448-Rc-1ix\"/>\n                    </connections>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"x5A-6p-PRh\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"1095\" y=\"860\"/>\n        </scene>\n        <!--Root View Controller-->\n        <scene sceneID=\"Rlt-2I-sjh\">\n            <objects>\n                <tableViewController id=\"hBb-rb-Nnf\" customClass=\"TableViewController\" sceneMemberID=\"viewController\">\n                    <tableView key=\"view\" clipsSubviews=\"YES\" contentMode=\"scaleToFill\" alwaysBounceVertical=\"YES\" dataMode=\"prototypes\" style=\"plain\" separatorStyle=\"default\" rowHeight=\"44\" sectionHeaderHeight=\"28\" sectionFooterHeight=\"28\" id=\"wbe-Ul-zXi\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"600\" height=\"600\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <animations/>\n                        <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                        <prototypes>\n                            <tableViewCell clipsSubviews=\"YES\" contentMode=\"scaleToFill\" selectionStyle=\"default\" indentationWidth=\"10\" reuseIdentifier=\"Cell\" id=\"TMp-E8-7gU\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"92\" width=\"600\" height=\"44\"/>\n                                <autoresizingMask key=\"autoresizingMask\"/>\n                                <tableViewCellContentView key=\"contentView\" opaque=\"NO\" clipsSubviews=\"YES\" multipleTouchEnabled=\"YES\" contentMode=\"center\" tableViewCell=\"TMp-E8-7gU\" id=\"XDI-5m-I1o\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"600\" height=\"43.5\"/>\n                                    <autoresizingMask key=\"autoresizingMask\"/>\n                                    <animations/>\n                                </tableViewCellContentView>\n                                <animations/>\n                                <connections>\n                                    <segue destination=\"vXZ-lx-hvc\" kind=\"show\" identifier=\"Segue\" trigger=\"accessoryAction\" id=\"ooq-eG-ONB\"/>\n                                </connections>\n                            </tableViewCell>\n                        </prototypes>\n                        <connections>\n                            <outlet property=\"dataSource\" destination=\"hBb-rb-Nnf\" id=\"tzZ-Gx-RU9\"/>\n                            <outlet property=\"delegate\" destination=\"hBb-rb-Nnf\" id=\"Vkw-sj-Dxz\"/>\n                        </connections>\n                    </tableView>\n                    <navigationItem key=\"navigationItem\" title=\"Root View Controller\" id=\"ICK-TT-DwA\"/>\n                </tableViewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"eMo-8b-5tN\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"142\" y=\"867\"/>\n        </scene>\n        <!--Navigation Controller-->\n        <scene sceneID=\"a3U-b5-p5B\">\n            <objects>\n                <navigationController id=\"2BK-85-JzC\" sceneMemberID=\"viewController\">\n                    <navigationBar key=\"navigationBar\" contentMode=\"scaleToFill\" id=\"68t-Rl-wxo\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"320\" height=\"44\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                        <animations/>\n                    </navigationBar>\n                    <connections>\n                        <segue destination=\"hBb-rb-Nnf\" kind=\"relationship\" relationship=\"rootViewController\" id=\"PNy-8t-2J1\"/>\n                    </connections>\n                </navigationController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"6RJ-5p-wa4\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"-774\" y=\"741\"/>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/Images.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.appcpu.$(PRODUCT_NAME:rfc1034identifier)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIMainStoryboardFile</key>\n\t<string>Main</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/TableViewController.h",
    "content": "//\n//  TableViewController.h\n//  EYTagView_Example\n//\n//  Created by ericyang on 10/11/15.\n//  Copyright © 2015 Eric Yang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface TableViewController : UITableViewController\n\n@end\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/TableViewController.m",
    "content": "//\n//  TableViewController.m\n//  EYTagView_Example\n//\n//  Created by ericyang on 10/11/15.\n//  Copyright © 2015 Eric Yang. All rights reserved.\n//\n\n#import \"TableViewController.h\"\n#import \"ViewController.h\"\n#import \"EYTagView.h\"\n\n@interface TableViewController ()\n\n@end\n\n@implementation TableViewController\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    \n    // Uncomment the following line to preserve selection between presentations.\n    // self.clearsSelectionOnViewWillAppear = NO;\n    \n    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.\n    // self.navigationItem.rightBarButtonItem = self.editButtonItem;\n}\n\n- (void)didReceiveMemoryWarning {\n    [super didReceiveMemoryWarning];\n    // Dispose of any resources that can be recreated.\n}\n-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{\n    NSIndexPath* indexPath=[self.tableView indexPathForSelectedRow];\n    ViewController* vc=  segue.destinationViewController;\n\n    vc.type=indexPath.row%(EYTagView_Type_Flow+1);\n}\n#pragma mark - Table view data source\n\n\n- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {\n    return EYTagView_Type_Flow+1;\n}\n\n- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath {\n    [self performSegueWithIdentifier:@\"Segue\" sender:self];\n}\n- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {\n    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@\"Cell\" forIndexPath:indexPath];\n    \n    // Configure the cell...\n  switch (indexPath.row) {\n        case 0:\n        {\n            cell.textLabel.text=@\"EYTagView_Type_Edit\";\n        }\n            break;\n        case 1:\n        {\n            cell.textLabel.text=@\"EYTagView_Type_Edit_Only_Delete\";\n        }\n            break;\n        case 2:\n        {\n            cell.textLabel.text=@\"EYTagView_Type_Display\";\n        }\n            break;\n        case 3:\n        {\n            cell.textLabel.text=@\"EYTagView_Type_Single_Selected\";\n        }\n            break;\n        case 4:\n        {\n            cell.textLabel.text=@\"EYTagView_Type_Multi_Selected\";\n        }\n            break;\n        case 5:\n        {\n            cell.textLabel.text=@\"EYTagView_Type_Multi_Selected_Edit\";\n        }\n            break;\n        case 6:\n        {\n            cell.textLabel.text=@\"EYTagView_Type_Flow\";\n        }\n            break;        \n  }\n    return cell;\n}\n\n\n/*\n// Override to support conditional editing of the table view.\n- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {\n    // Return NO if you do not want the specified item to be editable.\n    return YES;\n}\n*/\n\n/*\n// Override to support editing the table view.\n- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {\n    if (editingStyle == UITableViewCellEditingStyleDelete) {\n        // Delete the row from the data source\n        [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];\n    } else if (editingStyle == UITableViewCellEditingStyleInsert) {\n        // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view\n    }   \n}\n*/\n\n/*\n// Override to support rearranging the table view.\n- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {\n}\n*/\n\n/*\n// Override to support conditional rearranging of the table view.\n- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {\n    // Return NO if you do not want the item to be re-orderable.\n    return YES;\n}\n*/\n\n/*\n#pragma mark - Navigation\n\n// In a storyboard-based application, you will often want to do a little preparation before navigation\n- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {\n    // Get the new view controller using [segue destinationViewController].\n    // Pass the selected object to the new view controller.\n}\n*/\n\n@end\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/ViewController.h",
    "content": "//\n//  ViewController.h\n//  EYTagView_Example\n//\n//  Created by ericyang on 8/9/15.\n//  Copyright (c) 2015 Eric Yang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"EYTagView.h\"\n\n@interface ViewController : UIViewController\n\n@property (nonatomic) EYTagView_Type type;\n@end\n\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/ViewController.m",
    "content": "//\n//  ViewController.m\n//  EYTagView_Example\n//\n//  Created by ericyang on 8/9/15.\n//  Copyright (c) 2015 Eric Yang. All rights reserved.\n//\n\n#import \"ViewController.h\"\n/**\n @[\n @\"dog\",\n @\"cat\",\n @\"pig\",\n @\"duck\",\n @\"horse\",\n @\"elephant\",\n @\"ant\",\n @\"fish\",\n @\"bird\",\n @\"engle\",\n @\"snake\",\n @\"mouse\",\n @\"squirrel\",\n @\"beaver\",\n @\"kangaroo\",\n @\"monkey\",\n @\"panda\",\n @\"bear\",\n @\"lion\",\n ]\n */\n\n@interface ViewController ()<EYTagViewDelegate>\n@property (strong, nonatomic) IBOutlet EYTagView *tagView;\n@property (strong, nonatomic) IBOutlet EYTagView *tagView2;\n\n@end\n\n@implementation ViewController\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    \n    {\n        EYTagView* tagView=_tagView;\n        tagView.colorTag=COLORRGB(0xffffff);\n        tagView.colorTagBg=COLORRGB(0x2ab44e);\n        tagView.colorInput=COLORRGB(0x2ab44e);\n        tagView.colorInputBg=COLORRGB(0xffffff);\n        tagView.colorInputPlaceholder=COLORRGB(0x2ab44e);\n        tagView.backgroundColor=COLORRGB(0x00ffff);\n        tagView.colorInputBoard=COLORRGB(0x2ab44e);\n        tagView.viewMaxHeight=230;\n        tagView.type=_type;\n        \n        [tagView addTags:@[\n                           @\"dog\",\n                           @\"cat\",\n                           @\"pig\",\n                           @\"duck\",\n                           @\"horse\",\n                           @\"elephant\",\n                           @\"ant\",\n                           @\"fish\",\n                           @\"bird\",\n                           @\"engle\",\n                           @\"snake\",\n                           @\"mouse\",\n                           @\"squirrel\",\n                           @\"beaver\",\n                           @\"kangaroo\",\n                           @\"monkey\",\n                           @\"panda\",\n                           @\"bear\",\n                           @\"lion\",\n                           ]];\n    }\n    \n    {\n        EYTagView* tagView=_tagView2;\n        \n        tagView.colorTag=COLORRGB(0xffffff);\n        tagView.colorTagBg=COLORRGB(0x2ab44e);\n        tagView.colorInput=COLORRGB(0x2ab44e);\n        tagView.colorInputBg=COLORRGB(0xffffff);\n        tagView.colorInputPlaceholder=COLORRGB(0x2ab44e);\n        tagView.backgroundColor=COLORRGB(0x00ffff);\n        tagView.colorInputBoard=COLORRGB(0x2ab44e);\n        \n        tagView.type=_type;\n        tagView.viewMaxHeight=230;\n        \n        [tagView addTags:@[\n                           @\"pig\",\n                           @\"duck\",\n                           @\"horse\",\n                           @\"elephant\",\n                           @\"ant\",\n                           @\"fish\",                        \n                           ]];\n    }\n    \n    \n}\n\n\n\n-(void)heightDidChangedTagView:(EYTagView *)tagView{\n    NSLog(@\"heightDidChangedTagView\");\n}\n- (IBAction)toggleType:(UISwitch*)sender {\n    _tagView.type=sender.on?EYTagView_Type_Edit:EYTagView_Type_Display;\n}\n- (IBAction)handlerSegmentAction:(UISegmentedControl*)sender {\n    _tagView.type=(EYTagView_Type)sender.selectedSegmentIndex;\n    switch (sender.selectedSegmentIndex) {\n        case 0:\n        {\n            \n        }\n            break;\n        case 1:\n        {\n            \n        }\n            break;\n        case 2:\n        {\n            \n        }\n            break;\n        case 3:\n        {\n            \n        }\n            break;\n            \n        default:\n            break;\n    }\n    \n    \n}\n- (IBAction)test:(id)sender {\n    NSLog(@\"%@\",_tagView);\n}\n@end\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/en.lproj/Localizable.strings",
    "content": "\"Add Tag\"=\"Add Tag\";\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/main.m",
    "content": "//\n//  main.m\n//  EYTagView_Example\n//\n//  Created by ericyang on 8/9/15.\n//  Copyright (c) 2015 Eric Yang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"AppDelegate.h\"\n\nint main(int argc, char * argv[]) {\n    @autoreleasepool {\n        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));\n    }\n}\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/zh-Hans.lproj/LaunchScreen.strings",
    "content": "\n/* Class = \"UILabel\"; text = \"  Copyright (c) 2015 Eric Yang. All rights reserved.\"; ObjectID = \"8ie-xW-0ye\"; */\n\"8ie-xW-0ye.text\" = \"  Copyright (c) 2015 Eric Yang. All rights reserved.\";\n\n/* Class = \"UILabel\"; text = \"EYTagView_Example\"; ObjectID = \"kId-c2-rCX\"; */\n\"kId-c2-rCX.text\" = \"EYTagView_Example\";\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/zh-Hans.lproj/Localizable.strings",
    "content": "\"Add Tag\"=\"添加标签\";\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example/zh-Hans.lproj/Main.strings",
    "content": "\n/* Class = \"UILabel\"; text = \"auto layout test\"; ObjectID = \"LVG-rX-BcK\"; */\n\"LVG-rX-BcK.text\" = \"auto layout test\";\n\n/* Class = \"UISegmentedControl\"; gko-4U-5Zb.segmentTitles[0] = \"tag edit\"; ObjectID = \"gko-4U-5Zb\"; */\n\"gko-4U-5Zb.segmentTitles[0]\" = \"tag edit\";\n\n/* Class = \"UISegmentedControl\"; gko-4U-5Zb.segmentTitles[1] = \"tag show\"; ObjectID = \"gko-4U-5Zb\"; */\n\"gko-4U-5Zb.segmentTitles[1]\" = \"tag show\";\n\n/* Class = \"UISegmentedControl\"; gko-4U-5Zb.segmentTitles[2] = \"radio\"; ObjectID = \"gko-4U-5Zb\"; */\n\"gko-4U-5Zb.segmentTitles[2]\" = \"radio\";\n\n/* Class = \"UISegmentedControl\"; gko-4U-5Zb.segmentTitles[3] = \"checkbox\"; ObjectID = \"gko-4U-5Zb\"; */\n\"gko-4U-5Zb.segmentTitles[3]\" = \"checkbox\";\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t5F3FDF9C1B77248B00DE721B /* EYTagView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F3FDF9B1B77248B00DE721B /* EYTagView.m */; };\n\t\t5F4923191BC9F2CD00C23CE1 /* TableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F4923181BC9F2CD00C23CE1 /* TableViewController.m */; settings = {ASSET_TAGS = (); }; };\n\t\t5FE358CB1B770259007D66B3 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FE358CA1B770259007D66B3 /* main.m */; };\n\t\t5FE358CE1B770259007D66B3 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FE358CD1B770259007D66B3 /* AppDelegate.m */; };\n\t\t5FE358D11B770259007D66B3 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FE358D01B770259007D66B3 /* ViewController.m */; };\n\t\t5FE358D41B770259007D66B3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5FE358D21B770259007D66B3 /* Main.storyboard */; };\n\t\t5FE358D61B770259007D66B3 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5FE358D51B770259007D66B3 /* Images.xcassets */; };\n\t\t5FE358D91B770259007D66B3 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5FE358D71B770259007D66B3 /* LaunchScreen.xib */; };\n\t\t5FE358E51B770259007D66B3 /* EYTagView_ExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FE358E41B770259007D66B3 /* EYTagView_ExampleTests.m */; };\n\t\t5FE9C34C1B8F542B00868E32 /* EYTextField.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FE9C34B1B8F542B00868E32 /* EYTextField.m */; };\n\t\t5FE9C3541B8F5D4300868E32 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5FE9C3561B8F5D4300868E32 /* Localizable.strings */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t5FE358DF1B770259007D66B3 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 5FE358BD1B770259007D66B3 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 5FE358C41B770259007D66B3;\n\t\t\tremoteInfo = EYTagView_Example;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXFileReference section */\n\t\t5F3FDF9A1B77248B00DE721B /* EYTagView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EYTagView.h; sourceTree = \"<group>\"; };\n\t\t5F3FDF9B1B77248B00DE721B /* EYTagView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EYTagView.m; sourceTree = \"<group>\"; };\n\t\t5F4923171BC9F2CD00C23CE1 /* TableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TableViewController.h; sourceTree = \"<group>\"; };\n\t\t5F4923181BC9F2CD00C23CE1 /* TableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TableViewController.m; sourceTree = \"<group>\"; };\n\t\t5FE358C51B770259007D66B3 /* EYTagView_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = EYTagView_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t5FE358C91B770259007D66B3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t5FE358CA1B770259007D66B3 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\t5FE358CC1B770259007D66B3 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\t5FE358CD1B770259007D66B3 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n\t\t5FE358CF1B770259007D66B3 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = \"<group>\"; };\n\t\t5FE358D01B770259007D66B3 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = \"<group>\"; };\n\t\t5FE358D31B770259007D66B3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = \"<group>\"; };\n\t\t5FE358D51B770259007D66B3 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = \"<group>\"; };\n\t\t5FE358D81B770259007D66B3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = \"<group>\"; };\n\t\t5FE358DE1B770259007D66B3 /* EYTagView_ExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = EYTagView_ExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t5FE358E31B770259007D66B3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t5FE358E41B770259007D66B3 /* EYTagView_ExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EYTagView_ExampleTests.m; sourceTree = \"<group>\"; };\n\t\t5FE9C34A1B8F542B00868E32 /* EYTextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EYTextField.h; sourceTree = \"<group>\"; };\n\t\t5FE9C34B1B8F542B00868E32 /* EYTextField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EYTextField.m; sourceTree = \"<group>\"; };\n\t\t5FE9C3521B8F5CD600868E32 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = \"zh-Hans\"; path = \"zh-Hans.lproj/Main.strings\"; sourceTree = \"<group>\"; };\n\t\t5FE9C3531B8F5CD600868E32 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = \"zh-Hans\"; path = \"zh-Hans.lproj/LaunchScreen.strings\"; sourceTree = \"<group>\"; };\n\t\t5FE9C3551B8F5D4300868E32 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = \"<group>\"; };\n\t\t5FE9C3571B8F5D4500868E32 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = \"zh-Hans\"; path = \"zh-Hans.lproj/Localizable.strings\"; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t5FE358C21B770259007D66B3 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t5FE358DB1B770259007D66B3 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t5F3FDF991B77248B00DE721B /* EYTagView */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t5F3FDF9A1B77248B00DE721B /* EYTagView.h */,\n\t\t\t\t5F3FDF9B1B77248B00DE721B /* EYTagView.m */,\n\t\t\t\t5FE9C34A1B8F542B00868E32 /* EYTextField.h */,\n\t\t\t\t5FE9C34B1B8F542B00868E32 /* EYTextField.m */,\n\t\t\t);\n\t\t\tname = EYTagView;\n\t\t\tpath = ../EYTagView;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t5FE358BC1B770259007D66B3 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t5F3FDF991B77248B00DE721B /* EYTagView */,\n\t\t\t\t5FE358C71B770259007D66B3 /* EYTagView_Example */,\n\t\t\t\t5FE358E11B770259007D66B3 /* EYTagView_ExampleTests */,\n\t\t\t\t5FE358C61B770259007D66B3 /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t5FE358C61B770259007D66B3 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t5FE358C51B770259007D66B3 /* EYTagView_Example.app */,\n\t\t\t\t5FE358DE1B770259007D66B3 /* EYTagView_ExampleTests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t5FE358C71B770259007D66B3 /* EYTagView_Example */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t5FE9C3561B8F5D4300868E32 /* Localizable.strings */,\n\t\t\t\t5FE358CC1B770259007D66B3 /* AppDelegate.h */,\n\t\t\t\t5FE358CD1B770259007D66B3 /* AppDelegate.m */,\n\t\t\t\t5FE358CF1B770259007D66B3 /* ViewController.h */,\n\t\t\t\t5FE358D01B770259007D66B3 /* ViewController.m */,\n\t\t\t\t5F4923171BC9F2CD00C23CE1 /* TableViewController.h */,\n\t\t\t\t5F4923181BC9F2CD00C23CE1 /* TableViewController.m */,\n\t\t\t\t5FE358D21B770259007D66B3 /* Main.storyboard */,\n\t\t\t\t5FE358D51B770259007D66B3 /* Images.xcassets */,\n\t\t\t\t5FE358D71B770259007D66B3 /* LaunchScreen.xib */,\n\t\t\t\t5FE358C81B770259007D66B3 /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = EYTagView_Example;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t5FE358C81B770259007D66B3 /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t5FE358C91B770259007D66B3 /* Info.plist */,\n\t\t\t\t5FE358CA1B770259007D66B3 /* main.m */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t5FE358E11B770259007D66B3 /* EYTagView_ExampleTests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t5FE358E41B770259007D66B3 /* EYTagView_ExampleTests.m */,\n\t\t\t\t5FE358E21B770259007D66B3 /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = EYTagView_ExampleTests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t5FE358E21B770259007D66B3 /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t5FE358E31B770259007D66B3 /* Info.plist */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t5FE358C41B770259007D66B3 /* EYTagView_Example */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 5FE358E81B770259007D66B3 /* Build configuration list for PBXNativeTarget \"EYTagView_Example\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t5FE358C11B770259007D66B3 /* Sources */,\n\t\t\t\t5FE358C21B770259007D66B3 /* Frameworks */,\n\t\t\t\t5FE358C31B770259007D66B3 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = EYTagView_Example;\n\t\t\tproductName = EYTagView_Example;\n\t\t\tproductReference = 5FE358C51B770259007D66B3 /* EYTagView_Example.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n\t\t5FE358DD1B770259007D66B3 /* EYTagView_ExampleTests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 5FE358EB1B770259007D66B3 /* Build configuration list for PBXNativeTarget \"EYTagView_ExampleTests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t5FE358DA1B770259007D66B3 /* Sources */,\n\t\t\t\t5FE358DB1B770259007D66B3 /* Frameworks */,\n\t\t\t\t5FE358DC1B770259007D66B3 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t5FE358E01B770259007D66B3 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = EYTagView_ExampleTests;\n\t\t\tproductName = EYTagView_ExampleTests;\n\t\t\tproductReference = 5FE358DE1B770259007D66B3 /* EYTagView_ExampleTests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.unit-test\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t5FE358BD1B770259007D66B3 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 0640;\n\t\t\t\tORGANIZATIONNAME = \"Eric Yang\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t5FE358C41B770259007D66B3 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.4;\n\t\t\t\t\t\tDevelopmentTeam = 77SM2DKNM6;\n\t\t\t\t\t};\n\t\t\t\t\t5FE358DD1B770259007D66B3 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.4;\n\t\t\t\t\t\tTestTargetID = 5FE358C41B770259007D66B3;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 5FE358C01B770259007D66B3 /* Build configuration list for PBXProject \"EYTagView_Example\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t\t\"zh-Hans\",\n\t\t\t);\n\t\t\tmainGroup = 5FE358BC1B770259007D66B3;\n\t\t\tproductRefGroup = 5FE358C61B770259007D66B3 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t5FE358C41B770259007D66B3 /* EYTagView_Example */,\n\t\t\t\t5FE358DD1B770259007D66B3 /* EYTagView_ExampleTests */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t5FE358C31B770259007D66B3 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t5FE358D41B770259007D66B3 /* Main.storyboard in Resources */,\n\t\t\t\t5FE9C3541B8F5D4300868E32 /* Localizable.strings in Resources */,\n\t\t\t\t5FE358D91B770259007D66B3 /* LaunchScreen.xib in Resources */,\n\t\t\t\t5FE358D61B770259007D66B3 /* Images.xcassets in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t5FE358DC1B770259007D66B3 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t5FE358C11B770259007D66B3 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t5FE9C34C1B8F542B00868E32 /* EYTextField.m in Sources */,\n\t\t\t\t5F4923191BC9F2CD00C23CE1 /* TableViewController.m in Sources */,\n\t\t\t\t5FE358D11B770259007D66B3 /* ViewController.m in Sources */,\n\t\t\t\t5FE358CE1B770259007D66B3 /* AppDelegate.m in Sources */,\n\t\t\t\t5FE358CB1B770259007D66B3 /* main.m in Sources */,\n\t\t\t\t5F3FDF9C1B77248B00DE721B /* EYTagView.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t5FE358DA1B770259007D66B3 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t5FE358E51B770259007D66B3 /* EYTagView_ExampleTests.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t5FE358E01B770259007D66B3 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 5FE358C41B770259007D66B3 /* EYTagView_Example */;\n\t\t\ttargetProxy = 5FE358DF1B770259007D66B3 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t5FE358D21B770259007D66B3 /* Main.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t5FE358D31B770259007D66B3 /* Base */,\n\t\t\t\t5FE9C3521B8F5CD600868E32 /* zh-Hans */,\n\t\t\t);\n\t\t\tname = Main.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t5FE358D71B770259007D66B3 /* LaunchScreen.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t5FE358D81B770259007D66B3 /* Base */,\n\t\t\t\t5FE9C3531B8F5CD600868E32 /* zh-Hans */,\n\t\t\t);\n\t\t\tname = LaunchScreen.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t5FE9C3561B8F5D4300868E32 /* Localizable.strings */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t5FE9C3551B8F5D4300868E32 /* en */,\n\t\t\t\t5FE9C3571B8F5D4500868E32 /* zh-Hans */,\n\t\t\t);\n\t\t\tname = Localizable.strings;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t5FE358E61B770259007D66B3 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_SYMBOLS_PRIVATE_EXTERN = NO;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.4;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t5FE358E71B770259007D66B3 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.4;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t5FE358E91B770259007D66B3 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCODE_SIGN_IDENTITY = \"iPhone Distribution: YANG WEI (77SM2DKNM6)\";\n\t\t\t\tINFOPLIST_FILE = EYTagView_Example/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t5FE358EA1B770259007D66B3 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCODE_SIGN_IDENTITY = \"iPhone Distribution: YANG WEI (77SM2DKNM6)\";\n\t\t\t\tINFOPLIST_FILE = EYTagView_Example/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t5FE358EC1B770259007D66B3 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(SDKROOT)/Developer/Library/Frameworks\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = EYTagView_ExampleTests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/EYTagView_Example.app/EYTagView_Example\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t5FE358ED1B770259007D66B3 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(SDKROOT)/Developer/Library/Frameworks\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = EYTagView_ExampleTests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/EYTagView_Example.app/EYTagView_Example\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t5FE358C01B770259007D66B3 /* Build configuration list for PBXProject \"EYTagView_Example\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t5FE358E61B770259007D66B3 /* Debug */,\n\t\t\t\t5FE358E71B770259007D66B3 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t5FE358E81B770259007D66B3 /* Build configuration list for PBXNativeTarget \"EYTagView_Example\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t5FE358E91B770259007D66B3 /* Debug */,\n\t\t\t\t5FE358EA1B770259007D66B3 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t5FE358EB1B770259007D66B3 /* Build configuration list for PBXNativeTarget \"EYTagView_ExampleTests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t5FE358EC1B770259007D66B3 /* Debug */,\n\t\t\t\t5FE358ED1B770259007D66B3 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 5FE358BD1B770259007D66B3 /* Project object */;\n}\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:EYTagView_Example.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_ExampleTests/EYTagView_ExampleTests.m",
    "content": "//\n//  EYTagView_ExampleTests.m\n//  EYTagView_ExampleTests\n//\n//  Created by ericyang on 8/9/15.\n//  Copyright (c) 2015 Eric Yang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <XCTest/XCTest.h>\n\n@interface EYTagView_ExampleTests : XCTestCase\n\n@end\n\n@implementation EYTagView_ExampleTests\n\n- (void)setUp {\n    [super setUp];\n    // Put setup code here. This method is called before the invocation of each test method in the class.\n}\n\n- (void)tearDown {\n    // Put teardown code here. This method is called after the invocation of each test method in the class.\n    [super tearDown];\n}\n\n- (void)testExample {\n    // This is an example of a functional test case.\n    XCTAssert(YES, @\"Pass\");\n}\n\n- (void)testPerformanceExample {\n    // This is an example of a performance test case.\n    [self measureBlock:^{\n        // Put the code you want to measure the time of here.\n    }];\n}\n\n@end\n"
  },
  {
    "path": "EYTagView_Example/EYTagView_ExampleTests/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.appcpu.$(PRODUCT_NAME:rfc1034identifier)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "LICENSE",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright {yyyy} {name of copyright owner}\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n"
  },
  {
    "path": "README.MD",
    "content": "# EYTagView\n\n------\n\nEYTagView is a custome view simulate iOS Evernote's tag editing view.\n---\n\n####EYTagView is included in a more powerful project [EYPopupView](https://github.com/ygweric/EYPopupView)\n\n---\n\n###What can EYTagView do ???\n\n1. Show unlimited number of tags in EYTagView with bricks layout\n\n![scrollable.gif](https://raw.githubusercontent.com/ygweric/EYTagView/master/screenshots/1scrollable.gif)\n\n\n2. Can add and delete tag free\n\n3. Can disable editing tags if you want\n\n![scrollable.gif](https://raw.githubusercontent.com/ygweric/EYTagView/master/screenshots/1editable.gif)\n\n4. You can donfig almost all color and font as yo want\n\n```\n_tagView.colorTag=COLORRGB(0xffffff);\n_tagView.colorTagBg=COLORRGB(0x2ab44e);\n_tagView.colorInput=COLORRGB(0x2ab44e);\n_tagView.colorInputBg=COLORRGB(0xffffff);\n_tagView.colorInputPlaceholder=COLORRGB(0x2ab44e);\n_tagView.backgroundColor=COLORRGB(0xffffff);\n_tagView.colorInputBoard=COLORRGB(0x2ab44e);\n_tagView.viewMaxHeight=130;\n```\n\n\n\n---\n### how to use EYTagView\n\n```Object-C\n   EYTagView* _tagView=[[EYTagView alloc]initWithFrame:CGRectMake(10, 10, 200, 200)];\n   [self.view addSubview:_tagView];\n    _tagView.delegate=self;\n    [_tagView addTags:@[\n                        @\"111\",\n                        @\"222\",\n                        @\"犬瘟热\",\n                        @\"惹我欠人情无人区污染污染\",\n                        @\"3而是\",\n                        @\"是\",\n                        ]];\n```\nin `EYTagViewDelegate` ,the method `heightDidChangedTagView:(EYTagView *)` wil be called when the EYTagView's height is changed, so you can update the layout.\n\n---\n\nIf you are using autolayout, you dan do the following:\n\n1. layout you view in the xib or storyboard as normal. \n\n2. set the height and width of EYTagView to a constant value, but set the priority to <=249 ,which less that `Content Hugging priority 250`\n\n\nThen the _vContainer's frame will change with _tagView.\n\n---\nIf you don't know how to use EYTagView well, you can check the example project or create an issue\n\n--\n###EYTagView not support TableViewCell, use Header/Footer or ScrollView instead\n"
  }
]