Giter Club home page Giter Club logo

hybattributedlabelcagegory's Introduction

HYBAttributedLabelCagegory

An very useful category of UILabel, for we can easily set style strings with HTML-like.

##Introduce We usually need to specify a special style in seperate part when using a UILabel to show some tips, and will use NSMutableAttributedString to add special style with a range, but it's not so easy to finish our goal. So, I try to write an useful-use API to do that.

This API is a category api of UILabel, with it, you can use HTML-LIKE label to specify some style defined. Now, we only support <style></style> to specify different style for a UILable object.We just need to know what properties of style.

######Properties

  • font=value : Specify a normal font with a value, e.g. font=18.
  • boldfont=value: Specify a bold font with a value, e.g. boldfont=18.
  • color=value: Specify a foreground color with a value. The value can be red/blue/yellow... or #eee/#eeee/#eeeeee or 0x/0Xffffff, e.g. color=red, color=#fff, color=0xffffff.
  • backgroundcolor=value: Specify a background color with a value. The value can be red/blue/yellow... or #eee/#eeee/#eeeeee or 0x/0Xffffff, e.g. backgroundcolor=red, backgroundcolor=#fff, backgroundcolor=0xffffff.
  • underline=value: Specify underline style with a number between 0 and 9. For more information, please refer NSUnderlineStyle. The value should be in [0, 9]. e.g. underline=0, underline=1.

##How to use

pod "HYBAttributedLabelCagegory", '~> 0.0.1'

##screenshot image

##Enjoys Hope every one enjoy it. If any bugs, please give me a feedback and send to my email: [email protected]. Thanks in advance!

##Author Hello, my name is huangyibiao(黄仪标), and I have an English name JackyHuang, just call me Jacky. Now I have my own blog http://www.hybblog.com/, If you use Weibo, make friends with me: JackyHuang(标哥).

##More For more information, please move to my blog and watch assosiated article. URL:http://www.hybblog.com/hybattributedlabelcategory/

##LICENSE This software confirms MIT LICENSE, you can use it anywhere.

hybattributedlabelcagegory's People

Contributors

coderjackyhuang avatar

Stargazers

 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.