TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Arthur Ariel Sabintsev.
IDmeActionLabel is an extension of UILabel
that adds the target-action design paradigm to the UILabel
class. It is made to specifically work with labels that utilize an instance ofNSAttributedString
.
NSInvocation
) to a UILabel
NSAttirubtedString
pod 'IDmeActionLabel'
There are only two methods:
// 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
A sample project has been provided to demo the capability of this app.
This project was created to solve a very specific problem. Feel free to fork and abstract this project as needed. I'll make a conserted effort to examine and merge any pull-requests that come in.