Latest 1.0.1
Homepage https://github.com/alexandreos/UILabel-Copyable
License MIT
Platforms ios , requires ARC
Authors

A simple UILabel category meant to add copy functionality to it.

Features

  • Supports Interface Builder
  • Supports long press gesture
  • Allows enable/disble the copy feature
  • Works with all UILabel objects already in your project

Installation

CocoaPods

The easiest way of installing UILabel+Copyable is via CocoaPods.

pod 'UILabel+Copyable', '~> 1.0.0'

Old-fashioned way

  • Add UILabel+Copyable.h and UILabel+Copyable.m to your project.
  • #import "UILabel+Copyable.h" where you want to use the control.
  • These files require ARC.

Usage

Just import the category header: #import "UILabel+Copyable.h" and then set the copyingEnabled property to YES:

UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 30)];
label.copyingEnabled = enabled;
[self.view addSubview:label];

Included is a demo project showing how to use it from a storyboard.

UILabel+Copyable

Change log

  • version 1.0.1
  • Resolved issue #1.

  • version 1.0.0
  • Initial release

License

UILabel+Copyable is licensed under the terms of the MIT License. Please see the LICENSE file for full details.

Latest podspec

{
    "name": "UILabel+Copyable",
    "version": "1.0.1",
    "summary": "A simple category to add copy functionality to UILabel.",
    "description": "# Featuresn - Supports Interface Buildern - Supports long press gesturen - Allows enable/disble the copy featuren - Works with all UILabel objects already in your project",
    "homepage": "https://github.com/alexandreos/UILabel-Copyable",
    "screenshots": "https://raw.githubusercontent.com/alexandreos/UILabel-Copyable/screenshots/screenshot.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Alexandre Santos": "[email protected]"
    },
    "social_media_url": "https://twitter.com/alexandre_o_s",
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/alexandreos/UILabel-Copyable.git",
        "tag": "1.0.1"
    },
    "source_files": "UILabel+Copyable/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This