YYText
==============
[![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/ibireme/YYText/master/LICENSE)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![CocoaPods](http://img.shields.io/cocoapods/v/YYText.svg?style=flat)](http://cocoapods.org/?q= YYText)
[![CocoaPods](http://img.shields.io/cocoapods/p/YYText.svg?style=flat)](http://cocoapods.org/?q= YYText)
[![Support](https://img.shields.io/badge/support-iOS%206%2B%20-blue.svg?style=flat)](https://www.apple.com/nl/ios/)
[![Build Status](https://travis-ci.org/ibireme/YYText.svg?branch=master)](https://travis-ci.org/ibireme/YYText)
Powerful text framework for iOS to display and edit rich text.<br/>
(It's a component of [YYKit](https://github.com/ibireme/YYKit))
Features
==============
- UILabel and UITextView API compatible
- High performance asynchronous text layout and rendering
- Extended CoreText attributes with more text effects
- Text attachments with UIImage, UIView and CALayer
- Custom highlight text range to allow user interact with
- Text parser support (built in markdown/emoticon parser)
- Text container path and exclusion paths support
- Vertical form layout support (for CJK text)
- Image and attributed text copy/paste support
- Attributed text placeholder support
- Custom keyboard view support
- Undo and redo control
- Attributed text archiver and unarchiver support
- Multi-language and VoiceOver support
- Interface Builder support
- Fully documented
Architecture
==============
YYText vs TextKit
<img src="https://raw.github.com/ibireme/YYText/master/Attributes/architecture.png" width="400">
Text Attributes
==============
### YYText supported attributes
<table>
<thead>
<tr>
<th>Demo</th>
<th>Attribute Name</th>
<th>Class</th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/YYText Extended/YYTextAttachment.gif" width="200"></td>
<td>TextAttachment</td>
<td>YYTextAttachment</td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/YYText Extended/YYTextHighlight.gif" width="200"></td>
<td>TextHighlight</td>
<td>YYTextHighlight</td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/YYText Extended/YYTextBinding.gif" width="200"></td>
<td>TextBinding</td>
<td>YYTextBinding</td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/YYText Extended/YYTextShadow.png" width="200"></td>
<td>TextShadow<br/>TextInnerShadow</td>
<td>YYTextShadow</td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/YYText Extended/YYTextBorder.png" width="200"></td>
<td>TextBorder</td>
<td>YYTextBorder</td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/YYText Extended/YYTextBackgroundBorder.png" width="200"></td>
<td>TextBackgroundBorder</td>
<td>YYTextBorder</td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/YYText Extended/YYTextBlockBorder.png" width="200"></td>
<td>TextBlockBorder</td>
<td>YYTextBorder</td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Obliqueness.png" width="200"></td>
<td>TextGlyphTransform</td>
<td> NSValue(CGAffineTransform)</td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Underline.png" width="200"></td>
<td>TextUnderline</td>
<td>YYTextDecoration</td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Strikethrough.png" width="200"></td>
<td>TextStrickthrough</td>
<td>YYTextDecoration</td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/YYText Extended/YYTextBackedString.png" width="200"></td>
<td>TextBackedString</td>
<td>YYTextBackedString</td>
</tr>
</tbody>
</table>
###CoreText attributes which is supported by YYText
<table>
<thead>
<tr>
<th>Demo</th>
<th>Attribute Name</th>
<th>Class</th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Font.png" width="200"></td>
<td> Font </td>
<td>UIFont(CTFontRef)</td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Kern.png" width="200"></td>
<td> Kern </td>
<td>NSNumber</td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Stroke.png" width="200"></td>
<td> StrokeWidth </td>
<td> NSNumber </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/StrokeColor.png" width="200"></td>
<td> StrokeColor </td>
<td> CGColorRef </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Shadow.png" width="200"></td>
<td> Shadow </td>
<td> NSShadow </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Ligature.png" width="200"></td>
<td> Ligature </td>
<td> NSNumber </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/VerticalForms.png" width="200"></td>
<td> VerticalGlyphForm </td>
<td> NSNumber(BOOL) </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/WriteDirection.png" width="200"></td>
<td> WritingDirection </td>
<td> NSArray(NSNumber) </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/RunDelegate.png" width="200"></td>
<td> RunDelegate </td>
<td> CTRunDelegateRef </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Paragraph/Alignment.png" width="200"></td>
<td> TextAlignment </td>
<td> NSParagraphStyle <br/>(NSTextAlignment) </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Paragraph/LineBreakMode.png" width="200"></td>
<td> LineBreakMode </td>
<td> NSParagraphStyle <br/>(NSLineBreakMode) </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Paragraph/LineSpacing.png" width="200"></td>
<td> LineSpacing </td>
<td> NSParagraphStyle <br/>(CGFloat) </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Paragraph/ParagraphSpacing.png" width="200"></td>
<td> ParagraphSpacing <br/> ParagraphSpacingBefore </td>
<td> NSParagraphStyle <br/>(CGFloat) </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Paragraph/FirstLineHeadIndent.png" width="200"></td>
<td> FirstLineHeadIndent </td>
<td> NSParagraphStyle <br/>(CGFloat) </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Paragraph/HeadIndent.png" width="200"></td>
<td> HeadIndent </td>
<td> NSParagraphStyle <br/>(CGFloat) </td>
</tr>
<tr>
<td><img src="https://raw.github.com/ibireme/YYText/master/Attributes/CoreText and TextKit/Paragraph/T
没有合适的资源?快使用搜索试试~ 我知道了~
YYText 富文本开源库,版本0.9.0
共466个文件
png:186个
gif:148个
h:56个
4星 · 超过85%的资源 需积分: 10 32 下载量 91 浏览量
2016-03-04
16:10:34
上传
评论 1
收藏 17.07MB ZIP 举报
温馨提示
YYKit 工具库: YYModel — 高性能的 iOS JSON 模型框架。 YYCache — 高性能的 iOS 缓存框架。 YYImage — 功能强大的 iOS 图像框架。 YYWebImage — 高性能的 iOS 异步图像加载框架。 YYText — 功能强大的 iOS 富文本框架。 YYKeyboardManager — iOS 键盘监听管理工具。 YYDispatchQueuePool — iOS 全局并发队列管理工具。 YYAsyncLayer — iOS 异步绘制与显示的工具。 YYCategories — 功能丰富的 Category 类型工具库。
资源推荐
资源详情
资源评论
收起资源包目录
YYText 富文本开源库,版本0.9.0 (466个子文件)
text_paste.gif 4.48MB
text_path.gif 4.15MB
YYTextAttachment.gif 1.93MB
text_vertical.gif 1.59MB
text_markdown.gif 886KB
YYTextBinding.gif 658KB
YYTextHighlight.gif 502KB
083@2x.gif 60KB
085@2x.gif 48KB
025@2x.gif 35KB
007@2x.gif 28KB
096@2x.gif 22KB
078@2x.gif 21KB
062@2x.gif 19KB
023@2x.gif 18KB
010@2x.gif 18KB
088@2x.gif 17KB
045@2x.gif 16KB
087@2x.gif 16KB
098@2x.gif 16KB
086@2x.gif 16KB
027@2x.gif 15KB
036@2x.gif 15KB
011@2x.gif 15KB
012@2x.gif 15KB
031@2x.gif 15KB
003@2x.gif 14KB
028@2x.gif 14KB
051@2x.gif 13KB
105@2x.gif 13KB
015@2x.gif 12KB
038@2x.gif 12KB
014@2x.gif 12KB
095@2x.gif 10KB
034@2x.gif 10KB
064@2x.gif 10KB
018@2x.gif 9KB
073@2x.gif 9KB
076@2x.gif 9KB
082@2x.gif 9KB
091@2x.gif 9KB
039@2x.gif 9KB
002@2x.gif 8KB
093@2x.gif 8KB
100@2x.gif 8KB
103@2x.gif 8KB
042@2x.gif 8KB
101@2x.gif 8KB
080@2x.gif 8KB
104@2x.gif 7KB
081@2x.gif 7KB
084@2x.gif 7KB
063@2x.gif 7KB
097@2x.gif 7KB
020@2x.gif 7KB
026@2x.gif 6KB
067@2x.gif 5KB
021@2x.gif 5KB
069@2x.gif 5KB
060@2x.gif 5KB
044@2x.gif 5KB
099@2x.gif 5KB
057@2x.gif 5KB
054@2x.gif 5KB
032@2x.gif 5KB
090@2x.gif 5KB
050@2x.gif 5KB
056@2x.gif 4KB
089@2x.gif 4KB
016@2x.gif 4KB
052@2x.gif 4KB
071@2x.gif 4KB
006@2x.gif 4KB
005@2x.gif 4KB
004@2x.gif 4KB
046@2x.gif 4KB
001@2x.gif 4KB
035@2x.gif 4KB
049@2x.gif 4KB
013@2x.gif 4KB
022@2x.gif 4KB
094@2x.gif 4KB
024@2x.gif 4KB
043@2x.gif 4KB
072@2x.gif 3KB
102@2x.gif 3KB
092@2x.gif 3KB
066@2x.gif 3KB
055@2x.gif 3KB
114@2x.gif 3KB
053@2x.gif 3KB
019@2x.gif 3KB
047@2x.gif 3KB
138@2x.gif 2KB
141@2x.gif 2KB
115@2x.gif 2KB
106@2x.gif 2KB
030@2x.gif 2KB
122@2x.gif 2KB
118@2x.gif 2KB
共 466 条
- 1
- 2
- 3
- 4
- 5
资源评论
- qq_342020342016-03-07还可以,帮上了忙
- liubaisu2018-09-17很不错 帮了我很大的忙
_KnowingNow
- 粉丝: 1
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功