Giter VIP home page Giter VIP logo

agiletag's Introduction

AgileTag

CI Status Version License Platform

Example

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

Requirements

iOS8+

ScreenShot

下拉式相册分组

Installation

  • 通过CocoaPods安装  

AgileTag 支持通过 CocoaPods进行安装。 在Podfile文件中加上

pod "AgileTag"
  • 直接加项目中使用
git clone https://github.com/lovisty/AgileTag   

找到包含的文件Classes和Assets的AgileTag文件,直接把AgileTag拖到项目中。

导入头文件:

#import "YFAgileTagView.h"  

Usage

初始化以及赋值

YFAgileTagView *tagView = [[YFAgileTagView alloc] initWithFrame:YOUR_FRAME];
[tagView setIntervalVertical:10];//Tag之间的水平间距
[tagView setIntervalHorizontal:15];//Tag之间的竖直间距
[self addSubview:self.tagView];

//赋值
[self.tagView setSelectedDataArray:DATA_ARRAY];

提供的重要接口

//返回总高度
self.tagView.finallyHeightBlock = ^(CGFloat height){
  
};

//添加tag
[self.tagView addTagWithTitle:tagItem.currentTitle WithAnimation:YES completed:^{
           
}];

//删除tag
[firstCell.tagView removeTagWithTitle:tagItem.currentTitle WithAnimation:YES completed:^{

}];

注:每次调用添加或者删除tag后,会自动回调finallyHeightBlock返回添加或者删除后的高度,然后回调用completed。

Author

YaFei, [email protected]

个人博客:http://blog.csdn.net/u013749108

QQ:617267337

License

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

agiletag's People

Contributors

lovisty avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.