HPTextViewTapGestureRecognizer
==============================
[![Version](https://cocoapod-badges.herokuapp.com/v/HPTextViewTapGestureRecognizer/badge.png)](http://cocoadocs.org/docsets/HPTextViewTapGestureRecognizer) [![Platform](https://cocoapod-badges.herokuapp.com/p/HPTextViewTapGestureRecognizer/badge.png)](http://cocoadocs.org/docsets/HPTextViewTapGestureRecognizer) [![Build Status](https://travis-ci.org/hpique/HPTextViewTapGestureRecognizer.png)](https://travis-ci.org/hpique/HPTextViewTapGestureRecognizer)
A gesture recognizer to detect taps on links and text attachments.
If you're using the most excellent [TTTAttributedLabel](https://github.com/mattt/TTTAttributedLabel) just for the links, you might want to give this a look instead.
##Installation
Using [CocoaPods](http://cocoapods.org/):
```ruby
pod 'HPTextViewTapGestureRecognizer', '~> 0.1'
```
Or add the files from the [HPTextViewTapGestureRecognizer](https://github.com/hpique/HPTextViewTapGestureRecognizer/tree/master/HPTextViewTapGestureRecognizer) directory if you're doing it manually.
##Usage
Add a `HPTextViewTapGestureRecognizer` to your `UITextView`, set the recognizer delegate and implement the following optional delegate methods as needed:
```objective-c
-(void)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizer
handleTapOnURL:(NSURL*)URL
inRange:(NSRange)characterRange { }
-(void)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizer
handleTapOnTextAttachment:(NSTextAttachment*)textAttachment
inRange:(NSRange)characterRange { }
```
##Requirements
HPReorderTableView requires iOS 7.0 or above and ARC.
##License
Copyright 2014 Hermes Pique ([@hpique](https://twitter.com/hpique))
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Here's a picture of a Chihuahua:
[![Chihuahua](https://raw.githubusercontent.com/hpique/HPTextViewTapGestureRecognizer/master/HPTextViewTapGestureRecognizerDemo/chihuahua@2x.jpg)](https://flic.kr/p/adh8TT)
[Chihuahua picture](https://flic.kr/p/adh8TT) © Michael Holden, used under a [CC BY-NC-ND 2.0](https://creativecommons.org/licenses/by-nc-nd/2.0/) license.
没有合适的资源?快使用搜索试试~ 我知道了~
一种手势识别器,用于检测链接和文本附件上的点击_Objective-C_Ruby_下载.zip
共26个文件
m:5个
h:3个
xcscheme:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 124 浏览量
2023-05-01
00:42:59
上传
评论
收藏 278KB ZIP 举报
温馨提示
一种手势识别器,用于检测链接和文本附件上的点击_Objective-C_Ruby_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
一种手势识别器,用于检测链接和文本附件上的点击_Objective-C_Ruby_下载.zip (26个子文件)
HPTextViewTapGestureRecognizer-master
.travis.yml 395B
LICENSE 11KB
HPTextViewTapGestureRecognizerTests
HPTextViewTapGestureRecognizerTests.m 1KB
HPTextViewTapGestureRecognizerTests-Info.plist 690B
en.lproj
InfoPlist.strings 45B
HPTextViewTapGestureRecognizer.xcodeproj
xcshareddata
xcschemes
HPTextViewTapGestureRecognizer.xcscheme 3KB
HPTextViewTapGestureRecognizerDemo.xcscheme 3KB
project.pbxproj 26KB
project.xcworkspace
contents.xcworkspacedata 175B
HPTextViewTapGestureRecognizerDemo
HPTextViewTapGestureRecognizerDemo-Prefix.pch 344B
chihuahua@2x.jpg 258KB
Images.xcassets
AppIcon.appiconset
Contents.json 333B
LaunchImage.launchimage
Contents.json 442B
HPTextViewTapGestureRecognizerDemo-Info.plist 1KB
Base.lproj
Main.storyboard 4KB
HPAppDelegate.m 425B
main.m 369B
HPAppDelegate.h 309B
HPViewController.m 3KB
HPViewController.h 247B
en.lproj
InfoPlist.strings 45B
.gitignore 502B
HPTextViewTapGestureRecognizer
HPTextViewTapGestureRecognizer.h 1KB
HPTextViewTapGestureRecognizer.m 4KB
HPTextViewTapGestureRecognizer.podspec 683B
README.md 3KB
共 26 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功