开发者

Swipe left/right event on ViewController and UITextView over it

开发者 https://www.devze.com 2023-01-06 14:35 出处:网络
I have a 开发者_StackOverflowViewController on which there is a UITextView. On swipe let/right i want to refil UITextView with some other text. Touch Events are attached on ViewController. Problem is

I have a 开发者_StackOverflowViewController on which there is a UITextView. On swipe let/right i want to refil UITextView with some other text. Touch Events are attached on ViewController. Problem is to pass touch events to ViewController i need to setUserInteractionEnabled to NO. but i set it to No then my UITextView does not scroll content.

What shld i do?


Check this blog post here : http://mithin.in/2009/08/26/detecting-taps-and-events-on-uiwebview-the-right-way/

It's for UIWebView but should work right for you.


What about UIGestureRecognizer

0

精彩评论

暂无评论...
验证码 换一张
取 消