本文介绍: What’s itEmphasizeString(https://gitee.com/kmyhy/emphasized–string) is an extension that it help you to emphasize, highlight, underline, style specific sub–strings in a string. For example, given a string said ‘Pls login now at www.yourdomain.com’, you ca
What’s it
EmphasizeString(https://gitee.com/kmyhy/emphasized–string) is an extension that it help you to emphasize, highlight, underline, style specific sub-strings in a string. For example, given a string said ‘Pls login now at www.yourdomain.com’, you can make the ‘www.yourdomain.com’ look like an url which has an underline text–decoration with this extension.
EmphasizeString is extremely easy to use, please keep reading.
How to use
EmphasizedString extend from String, but to be convenient, it also include 2 UIKit extension: UILabel and UITextView. Absolutely, feel free to extend it to other UIKit to take advantage of its functionality.
UILabel extension
You can use this extension to customize your UILabel’s text style:
UITextView extention
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。