摘要: 原来我自定义过UITextView,然后将捕获touchesBegan,touchesMoved和touchesEnded的事件后交给父层去处理,这样就可以UITextView上进行手势翻页等处理,今天想要故伎重演在UIWebView上,结果失败了。后来用了一种最最简单的办法实现了。你猜对了,是UITapGestureRecognizer,贴上代码。在UIViewController中,加入协议UIGestureRecognizerDelegate,然后.m文件里加入以下代码:UITapGestureRecognizer* singleTap = [[UITapGestureRecognize 阅读全文
posted @ 2011-08-20 00:29 jauntlin 阅读(9951) 评论(0) 推荐(1) 编辑