[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

EYTagView is a custome view simulate iOS Evernote's tag editing view.

License

Notifications You must be signed in to change notification settings

ygweric/EYTagView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EYTagView


EYTagView is a custome view simulate iOS Evernote's tag editing view.

####EYTagView is included in a more powerful project EYPopupView


###What can EYTagView do ???

  1. Show unlimited number of tags in EYTagView with bricks layout

scrollable.gif

  1. Can add and delete tag free

  2. Can disable editing tags if you want

scrollable.gif

  1. You can donfig almost all color and font as yo want
_tagView.colorTag=COLORRGB(0xffffff);
_tagView.colorTagBg=COLORRGB(0x2ab44e);
_tagView.colorInput=COLORRGB(0x2ab44e);
_tagView.colorInputBg=COLORRGB(0xffffff);
_tagView.colorInputPlaceholder=COLORRGB(0x2ab44e);
_tagView.backgroundColor=COLORRGB(0xffffff);
_tagView.colorInputBoard=COLORRGB(0x2ab44e);
_tagView.viewMaxHeight=130;

how to use EYTagView

   EYTagView* _tagView=[[EYTagView alloc]initWithFrame:CGRectMake(10, 10, 200, 200)];
   [self.view addSubview:_tagView];
    _tagView.delegate=self;
    [_tagView addTags:@[
                        @"111",
                        @"222",
                        @"犬瘟热",
                        @"惹我欠人情无人区污染污染",
                        @"3而是",
                        @"是",
                        ]];

in EYTagViewDelegate ,the method heightDidChangedTagView:(EYTagView *) wil be called when the EYTagView's height is changed, so you can update the layout.


If you are using autolayout, you dan do the following:

  1. layout you view in the xib or storyboard as normal.

  2. set the height and width of EYTagView to a constant value, but set the priority to <=249 ,which less that Content Hugging priority 250

Then the _vContainer's frame will change with _tagView.


If you don't know how to use EYTagView well, you can check the example project or create an issue

-- ###EYTagView not support TableViewCell, use Header/Footer or ScrollView instead

About

EYTagView is a custome view simulate iOS Evernote's tag editing view.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published