提醒:How to detect double taps in UIWebView 2011年04月13日

来自: realazy
演示:以MSN订阅提醒为例 订阅到哪吒,有更新提醒我
哪吒机器人提醒:
提醒:realazy
【标题】How to detect double taps in UIWebView
【摘要】you can use this robust approach, or this smart method. but the first is using the undocumented (private) api, and second is not working for me (and for somebody according to the comments on that blog post). so this is my solution.subclass uiwebview and put these lines under your implementation:- (uiview *)hittest:(cgpoint)point withevent:(uievent *)event{ cgpoint p = currentpoint; nstimeinterval t = currenttimestamp; currentpoint = point; currenttimestamp = [event timestamp]; if (cgpoi... (04-13 07:12)
收藏 |  评论 |  推荐给好友  | 
本文共有 0 次分享
评论
共有 - 条评论


我要反馈