Latest 0.0.1
Homepage https://github.com/lengain/TYLCopyLabel
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit
Authors

TYLCopyLabel 中文介绍

License MIT 
Support 

TYLCopyLabel is a UILabel which use the UIMenuController interface and UIPasteboard

Function:

  • Long press then pop-up the UIMenuController
  • Custom the highlight background color
  • set tap gesture to pop-up the UIMenuController

Demo Project

See TYLCopyLabel.xcodeproj

TYLCopyLabel

How to use

import `TYLCopyLabel.h`

cocoapods

pod 'TYLCopyLabel'

Requirements

This class requires a deployment target of iOS 6.0 or greater.

License

TYLCopyLabel is provided under the MIT license. See LICENSE file for details.

中文介绍

TYLCopyLabel是一个带有复制功能的UILabel,它的父类是UILabel,具体实现中用到了UIPasteboard 和 自定义UIMenuController

功能:

  • 长按弹出UIMenuController
  • 自定义高亮背景色
  • 也可以设置为点击弹出UIMenuController

演示项目

查看并运行TYLCopyLabel.xcodeproj

TYLCopyLabel

用法

import `TYLCopyLabel.h`

cocoapods

pod 'TYLCopyLabel'

项目系统要求

在iOS6.0及以上系统上使用

许可证

TYLCopyLabel使用 MIT 许可证,详情见 LICENSE 文件

Latest podspec

{
    "name": "TYLCopyLabel",
    "summary": "A Class of iOS UIKit.",
    "version": "0.0.1",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lengain": "[email protected]"
    },
    "homepage": "https://github.com/lengain/TYLCopyLabel",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/lengain/TYLCopyLabel.git",
        "tag": "0.0.1"
    },
    "requires_arc": true,
    "source_files": "TYLCopyLabel/*.{h,m}",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This