IDmeActionLabel 1.0.0

IDmeActionLabel 1.0.0

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最新版本2014年12月

Arthur Ariel Sabintsev 维护。



  • Arthur Ariel Sabintsev

为 UILabel 添加了目标-操作支持


关于

IDmeActionLabelUILabel 的一个扩展,为 UILabel 类添加了目标-操作设计范式。它旨在与使用 NSAttributedString 实例的标签一起使用。

变更记录(v1.0.0)

  • 初次发布

当前功能

  • 支持向 UILabel 添加多个目标-操作(通过 NSInvocation
  • 支持使用 NSAttirubtedString 的标签

未来功能

  • 在点击时更改 NSAttributedString 属性。

安装说明

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请求。

创建和维护者

Arthur Ariel Sabintsev