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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Is there no way to stop the GSM Buzz? jossshr iPhone Tips, Help and Troubleshooting 39 Nov 24, 2009 12:25 AM
Is there a way to stop a 360 from auto-booting a disc in the drive? lamina Console Games 4 Nov 11, 2009 09:27 AM
Is there a way to stop "Expose" from affecting a specific application? dfnj123 OS X 2 Aug 6, 2009 07:03 AM
Is there a way to stop Safari from opening new windows? ksgant OS X 8 Jun 19, 2009 08:48 PM
is there a way to stop the CD drive from spinning when I wake up my MBP? eyespii MacBook Pro 3 May 23, 2008 07:20 PM


All times are GMT -5. The time now is 03:53 AM.

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

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