Latest | 0.0.1 |
---|---|
Homepage | https://github.com/initlifeinc/ILEditLabel |
License | Apache License 2.0 |
Platforms | ios 5.0, requires ARC |
Authors |
ILEditLabel is label support copy&edit for ios. It’s easy to use.
How to use
pod ‘ILEditLabel’
You can easy to use by open project to read the files in source.
Enable Copying
-
create edit label just as normal label
self.editLabel = [[ILEditLabel alloc] initWithFrame:CGRectMake(20, 100, [UIScreen mainScreen].bounds.size.width - 40 , 30)];
-
enable copy feature.
[self.editLabel setCopyingEnabled:YES];
-
custom backgroundcolor when trigger copy.
self.editLabel.backgroundColor = [UIColor colorWithRed:0.9 green:0.9 blue:0.93 alpha:1]; self.editLabel.copyingBackgroundColor = [UIColor grayColor];
Enable Edit
-
enable copy feature so that you can click label to edit text
[self.editLabel setEditEnabled:!self.editLabel.editEnabled];
Latest podspec
{ "name": "ILEditLabel", "version": "0.0.1", "summary": "a copy & edit label for ios", "homepage": "https://github.com/initlifeinc/ILEditLabel", "license": "Apache License 2.0", "authors": { "initlifeinc": "[email protected]" }, "platforms": { "ios": "5.0" }, "source": { "git": "https://github.com/initlifeinc/ILEditLabel.git", "tag": "0.0.1" }, "requires_arc": true, "source_files": "src/*" }
Tue, 01 Mar 2016 16:26:03 +0000