Latest 1.0.1
Homepage https://github.com/alexyubin/YBLabel_Copy
License MIT
Platforms ios , requires ARC
Authors

YBLabel_Copy

一个属性 给UILabel添加长按复制

demo

image

Installation

手动拖入
将 YBLabel_Copy 文件夹拽入项目中,导入头文件:


 "#import "UILabel+Copy.h"

CocoaPods
"#import <YBLabel+Copy/UILabel+Copy.h>"


 pod 'YBLabel+Copy', '~> 1.0.1'

如果未发现 1.0.1 请更新一下pod, 使用命令


 pod repo update

但是有时候,更新了却还是不行,那我们就


 pod cache clean --all
 rm -rf ~/Library/Caches/CocoaPods
 pod repo update

How to use


 UILabel *label= [[UILabel alloc] init];
 //使UILabel拥有长按复制功能
 label.copyingEnabled = YES;

Latest podspec

{
    "name": "YBLabel+Copy",
    "version": "1.0.1",
    "summary": "Add copy functionality to UILabel",
    "homepage": "https://github.com/alexyubin/YBLabel_Copy",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "alexyubin": "[email protected]"
    },
    "social_media_url": "",
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/alexyubin/YBLabel_Copy.git",
        "tag": "1.0.1"
    },
    "source_files": "YBLabel+Copy/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This