View attached to UIScrollView not receiving touches events
I have MyView attached to a scroll view. MyView implements touchesBegan and touchesEnded. When it first comes up and I press and hold inside the view, I do NOT get touchesBegan. If, however, I press and drag to scroll the view, then press and hold inside the view, I DO get touchesBegan.
I don't expect to get a touchesBegan immediately since the scroll view is handling the scrolling aspect; but when I press and hold, I should get the event after a short delay. As I said, if I manually scroll the view before performing the press and hold, everything works as expected.
I see nothing in the UIScrollViewDelegate that could help. I see the touchesShouldBegin member of the UIScrollView interface; but the docs say the default return is YES. So I don't see how that's going to help me either.
I got something working. FYI, I just derived from UIScrollView and handle the touchesBegan in that class.
Hi,
i am also doing same kind of app. When i put scrollView.userInteractionEnabled=NO; i am getting touchBegin, touchMoved and touchEnded working fine. But when scroll is not working.
What i am trying to do is, when i single tap on scrollview, i am hiding nav bar and tool bar(below) and when i double tap showing nav bar and tool bar.
Could you post, you code or send sample application.
i am also doing same kind of app. When i put scrollView.userInteractionEnabled=NO; i am getting touchBegin, touchMoved and touchEnded working fine. But when try to zoom is not working.
what i have to do for getting both zoom effect & touch effects for the imageviews contained in scroll view
i am also doing same kind of app. When i put scrollView.userInteractionEnabled=NO; i am getting touchBegin, touchMoved and touchEnded working fine. But when try to zoom is not working.
what i have to do for getting both zoom effect & touch effects for the imageviews contained in scroll view
Thanks
Ann
Hi,
In developer.apple.com's sample codes, i have found one sample code "Scrollview suite" follow it you will get a solution. I am using that only.
In developer.apple.com's sample codes, i have found one sample code "Scrollview suite" follow it you will get a solution. I am using that only.
Now my problem is solved.
can you share it with us?
in the example of autoscroll in the scrollviewsuit
im trying to load more then one image, basically the same images of the thumbscroll view,but in the imagescrollview, so you can swipe through the images
In developer.apple.com's sample codes, i have found one sample code "Scrollview suite" follow it you will get a solution. I am using that only.
Now my problem is solved.
can you share it with us?
in the example of autoscroll in the scrollviewsuit
im trying to load more then one image, basically the same images of the thumbscroll view,but in the imagescrollview and another size , so you can swipe through the images
can you share it with us?
in the example of autoscroll in the scrollviewsuit
im trying to load more then one image, basically the same images of the thumbscroll view,but in the imagescrollview and another size , so you can swipe through the images
// this piece of code discards the keyboard from a text view or from a text field with keyboard type numberpad or that sort(with no return key)