Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 19, 2008, 03:33 PM   #1
ethana
Banned
 
Join Date: Jul 2008
Location: Seattle, WA
Is there a way to stop UIWebView from bouncing vertically?

Is there a way to stop UIWebView from bouncing vertically?

I have a UIWebView in my app and I can bounce it vertically with my finger and I can't turn it off.

And no it isn't a subclass of UIScrollView, it's a subclass of UIView.

Thanks,

Ethan
ethana is offline   0 Reply With Quote
Old Dec 20, 2008, 06:06 PM   #2
ghayenga
macrumors regular
 
Join Date: Jun 2008
Quote:
Originally Posted by ethana View Post
Is there a way to stop UIWebView from bouncing vertically?

I have a UIWebView in my app and I can bounce it vertically with my finger and I can't turn it off.

And no it isn't a subclass of UIScrollView, it's a subclass of UIView.

Thanks,

Ethan
The UIWebview isn't a subclass of UIScrollView but it does have a *subview* that is a UIScrollView.

So this *should* work.

UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero];
UIScrollView *scrollView = [webView.subviews objectAtIndex:0];
scrollView.bounces = NO;
ghayenga is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Animate Sprite Vertically dannybrammy iPhone/iPad Programming 2 Mar 17, 2014 04:09 PM
Good second monitor for 27 Imac to be used vertically parasky iMac 0 Jan 25, 2013 11:42 AM
iPhone 4s: Possible to stop Safari from reloading and bouncing? Iphone4sinwhite iPhone 3 Sep 9, 2012 10:47 PM
How come sometimes it is difficult to scroll horizontally and vertically in Safari? TH55 iPhone 2 Jun 25, 2012 09:53 PM

Forum Jump

All times are GMT -5. The time now is 02:24 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC