E ethana macrumors 6502a Original poster Dec 19, 2008 #1 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
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
G ghayenga macrumors regular Dec 20, 2008 #2 ethana said: 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 Click to expand... 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;
ethana said: 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 Click to expand... 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;