lyb5834 / Ybattributetexttapforswfit
Licence: mit
一行代码添加文本点击事件(swfit4.2版本)/a fast way to implement click event text(for swfit4.2)
Stars: ✭ 47
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Ybattributetexttapforswfit
Attributedstring
基于Swift插值方式优雅的构建富文本, 支持点击长按事件, 支持不同类型过滤, 支持自定义视图等.
Stars: ✭ 294 (+525.53%)
Mutual labels: text, label
Mpitextkit
Powerful text framework for iOS to display rich text based on TextKit, inspired by Texture and YYText.
Stars: ✭ 191 (+306.38%)
Mutual labels: text, label
Tytext
text asynchronous rendering by TextKit for iOS
Stars: ✭ 127 (+170.21%)
Mutual labels: text, label
Ybattributetexttapaction
一行代码添加文本点击事件/a fast way to implement click event text
Stars: ✭ 430 (+814.89%)
Mutual labels: text, label
Language Modelling
Generating Text using Deep Learning in Python - LSTM, RNN, Keras
Stars: ✭ 38 (-19.15%)
Mutual labels: text
Typographie
Web service for preparation of Russian texts for the web publication
Stars: ✭ 12 (-74.47%)
Mutual labels: text
Ps Webapi
(Migrated from CodePlex) Let PowerShell Script serve or command-line process as WebAPI. PSWebApi is a simple library for building ASP.NET Web APIs (RESTful Services) by PowerShell Scripts or batch/executable files out of the box.
Stars: ✭ 24 (-48.94%)
Mutual labels: text
Urlify
A simple macOS app to create valid file and url names from clipboard text.
Stars: ✭ 44 (-6.38%)
Mutual labels: text
Femto
A toy text editor with no dependencies written in Ruby
Stars: ✭ 34 (-27.66%)
Mutual labels: text
Mylittlecanvas
🎨Need to create a custom view ? You don't know how to use Canvas, use MyLittleCanvas instead !
Stars: ✭ 870 (+1751.06%)
Mutual labels: text
Cli Badges
Quirky little node-js library for generating badges for your cli apps.
Stars: ✭ 39 (-17.02%)
Mutual labels: label
Tui
A text-based user interface library for golang based on termbox
Stars: ✭ 12 (-74.47%)
Mutual labels: text
Randomdatagenerator
This is a configurable generator to create random data like Lorum Ipsum Text, Words, Text Patterns, First/Last Names, MAC-Addresses, IP-Addresses, Guids and DateTime.
Stars: ✭ 45 (-4.26%)
Mutual labels: text
Ggrepel
📍 Repel overlapping text labels away from each other.
Stars: ✭ 853 (+1714.89%)
Mutual labels: text
Verticalize
Simple tool to verticalize text delimited files.
Stars: ✭ 32 (-31.91%)
Mutual labels: text
Ruby Gem Downloads Badge
Clean and simple gem downloads count badge, courtesy of http://shields.io/. You can checkout the application directly at the following URL:
Stars: ✭ 29 (-38.3%)
Mutual labels: label
Text Minimap
Generate text minimap/preview using Braille Patterns
Stars: ✭ 21 (-55.32%)
Mutual labels: text
YBAttributeTextTapForSwfit
一行代码添加文本点击事件(swfit3.0版本)/a fast way to implement click event text(for swfit3.0)
效果图
Objective-C版本
https://github.com/lyb5834/YBAttributeTextTapAction.git
已适配swfit4.2
#使用方法
- 设置
label.attributedText = ?????
label.yb_addAttributeTapAction(["xx","xx"...]) { (string, range, int) in coding more... }
- PS:数组里输入的要点击的字符可以重复
#重要提醒
- 使用本框架时,最好设置一下
NSParagraphStyle中
的lineSpacing
属性,也就是行间距,如果不设置,则默认为0! - 使用本框架时,一定要设置
label.attributedText = ?????
,不设置则无效果!! - 默认添加点击效果,关闭只需设置
label.enabledTapEffect = false
即可
#版本支持
-
xcode7.0+
-
如果您在使用本库的过程中发现任何bug或者有更好建议,欢迎联系本人email [email protected]
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].