How do I enable swipe in webview for iOS?
-
I just need a way to swipe back and forth between pages. Similar to swiping left and right between photos on a camera roll.
-
Answer:
That's a bit hard to do since the UIWebView already handles touch events (for things like pinch zooming, up/down and left/right scrolling around the page, single taps for navigating links/buttons, etc.). You can override the UIWebView class with your own class and specifically look for certain touch events while passing the others through to the base UIWebView event handler. Note that if you override left/right swiping, you'll loose the ability to scroll left and right on a page, which could clearly get annoying, especially if you have zoom enabled (which you have to work at to disable).
Joseph H. Schwendt II at Quora Visit the source
Related Q & A:
- How can I enable cors on openshift?Best solution by Stack Overflow
- How do I enable POP access on my Yahoo account?Best solution by Yahoo! Answers
- How do I enable a Yahoo toolbar?Best solution by Yahoo! Answers
- How do I enable yahoo! Answer Email communication?Best solution by Yahoo! Answers
- How do i enable links on yahoo mail?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.