Skip to content

lengain/TYLCopyLabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

用法

import `TYLCopyLabel.h`

cocoapods

pod 'TYLCopyLabel'

项目系统要求

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

许可证

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

About

A UILabel using the UIMenuController interface and UIPasteboard

Resources

License

Stars

Watchers

Forks

Packages

No packages published