-
Notifications
You must be signed in to change notification settings - Fork 2
Home
lengain edited this page Jan 21, 2016
·
4 revisions
TYLCopyLabel 中文介绍
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
See TYLCopyLabel.xcodeproj
import TYLCopyLabel.h
This class requires a deployment target of iOS 6.0 or greater.
TYLCopyLabel is provided under the MIT license. See LICENSE file for details.
TYLCopyLabel是一个带有复制功能的UILabel,它的父类是UILabel,具体实现中用到了UIPasteboard 和 自定义UIMenuController ##功能:
- 长按弹出UIMenuController
- 自定义高亮背景色
- 也可以设置为点击弹出UIMenuController
查看并运行TYLCopyLabel.xcodeproj
import TYLCopyLabel.h
在iOS6.0及以上系统上使用
TYLCopyLabel使用 MIT 许可证,详情见 LICENSE 文件