测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布最新版本 | 2014年12月 |
由 Arthur Ariel Sabintsev 维护。
IDmeActionLabel 是 UILabel
的一个扩展,为 UILabel
类添加了目标-操作设计范式。它旨在与使用 NSAttributedString
实例的标签一起使用。
UILabel
添加多个目标-操作(通过 NSInvocation
)NSAttirubtedString
的标签pod 'IDmeActionLabel'
只有两种方法
// Adds and NSInvocation to the UILabel for a given substring
- (void)addInvocation:(NSInvocation *)invocation forSubstring:(NSString *)substring;
// Removes an existing NSInvocation from the UILabel for a given substring
- (void)removeInvocation:(NSInvocation *)invocation forSubstring:(NSString *)substring
提供了一份示例项目来演示该应用程序的功能。
该项目是为了解决一个非常具体的问题而创建的。请随意将其分叉并根据需要抽象化该项目。我将尽最大努力审查和合并收到的任何Pull请求。