ani
ani

Reputation: 245

How to Pinch/Zoom in a UiWebView vertically only not horizontally

I want to make my webview to be pinched/zoomed vertically only. By zooming the webview I want to make it zommed vertically only but not horizontally. Does it possible?

Upvotes: 1

Views: 736

Answers (2)

SethHB
SethHB

Reputation: 743

With a quick search, I found others that have blazed the trail before you: Custom Pinch Zoom

The short answer is No, you can't realistically make an entirely custom pinch zoom like you would like. But, you can easily get the end behavior that you are looking for by manually rescaling your content after the automated pinch zoom has been released. It's not as pretty, but if your determined to have a vertical zoom, it might be the best option.

Upvotes: 0

Paresh Navadiya
Paresh Navadiya

Reputation: 38239

UIWebView also has UIScrollView as its subclass.

So refer how-to-lock-the-horizontal-scrolling-of-a-scrollview-in-ios link.

Upvotes: 1

Related Questions