Latest | 1.0.0 |
---|---|
Homepage | https://github.com/IDme/IDmeActionLabel |
License | MIT |
Platforms | ios 7.0, requires ARC |
Authors |
Adds Target-Action Support for UILabel
About
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
.
Changelog (v1.0.0)
- Initial Release
Current Features
- Support for adding multiple target-actions (via
NSInvocation
) to aUILabel
- Support for Labels that use
NSAttributedString
Future Features
- Change NSAttributedString properties on tap.
Installation Instructions
pod 'IDmeActionLabel'
Methods
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
Sample Project
A sample project has been provided to demo the capability of this app.
Final Notes
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.
Created and maintained by
Latest podspec
{ "name": "IDmeActionLabel", "version": "1.0.0", "summary": "Adds Target-Action support for UILabel.", "homepage": "https://github.com/IDme/IDmeActionLabel", "platforms": { "ios": "7.0" }, "source": { "git": "https://github.com/IDme/IDmeActionLabel.git", "tag": "1.0.0" }, "requires_arc": true, "source_files": "IDmeActionLabel/*.{h,m}", "authors": { "Arthur Ariel Sabintsev": "[email protected]" }, "license": "MIT" }
Sun, 28 Feb 2016 00:00:03 +0000