Skip to content

自定义表情、Emotion、URL&PhoneNumber (LinkLabel、RichLabel)

License

Notifications You must be signed in to change notification settings

diedaifa/RichLabel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RickLabel

ScreenShot

###说明 RickLabel是UILabel的子类。支持显示表情、识别URL、电话号码等(可扩展),URL和电话号码可以点击可以长按。表情部分使用TextKit框架实现。识别URL、电话号码主要参考KILabel

###使用条件

  • ARC
  • iOS 7.0+

###如何使用

  1. 下载KZRichLabel,把KZRichLabel.h和KZRichLabel.m文件添加到工程中。
  2. 在需要的地方 #import "MZTimerLabel.h"(具体参考Demo)

###TODO

  1. Swift版本。
  2. 替换系统自带的URL识别和电话号码识别,改成精准的正则表达式。

###参考链接

  1. KILabel
  2. CCHLinkTextView
  3. STTweetLabel
  4. NimbusAttributedLabel

###License This code is distributed under the terms and conditions of the MIT license.

About

自定义表情、Emotion、URL&PhoneNumber (LinkLabel、RichLabel)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 52.4%
  • Swift 47.6%