Giter Club home page Giter Club logo

lbtagview's Introduction

LBTagView

gif

What

LBTagView is useful to add tag to image or other views. It is intelligent, you can drag where you want.It’s easy to use with simple API.You can set its colors and font what you like.

Requirements

iOS 7 and later ARC

Usage

It is easy to use. You just need to creat a tagView ,set its text and add view you want,that’s all.

LBTagView *tag = [[LBTagView alloc] initWithFrame:CGRectMake(50, 300, 100, 100)];
tag.text = @"hello world";
[self.view addSubview:tag];

Customization

//is can be moved
@property (nonatomic, assign) BOOL canMove;

//text
@property (nonatomic, copy) NSString *text;

//default [UIColor whiteColor]
@property (nonatomic, strong) UIColor *textColor;

//default is LBTagDirectionLeft
@property (nonatomic, assign) LBTagDirection direction;

//default [UIFont systemFontOfSize:12]
@property (nonatomic, strong) UIFont *font;

//default [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5]
@property (nonatomic, strong) UIColor *backgroundColor;

//default [UIColor colorWithRed:1 green:1 blue:1 alpha:0.8]
@property (nonatomic, strong) UIColor *circlrColor;

//default [UIColor colorWithRed:0 green:0 blue:0 alpha:0.7]
@property (nonatomic, strong) UIColor *circlrShadowColor;

//tap action
@property (nonatomic, strong) UITapGestureRecognizer *tapGestureRecognizer;

Example

For more information, you can download the zip and run the example.

License

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

lbtagview's People

Contributors

lovels avatar

Watchers

 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.