This seems to work too (although it's not part of the API):
Code:
@interface UIScrollView (extended)
- (void)setAllowsRubberBanding:(BOOL)allowsRubberBanding;
@end
@implementation InfoViewController
- (void)viewDidLoad{
[(UIScrollView*)[webview.subviews objectAtIndex:0] setAllowsRubberBanding:NO];
}
@end
Quote:
Originally Posted by coolblade
MaCeXpErTo, probably shouldn't try to answer things that you really have no clue on, there is no boucnes property in the UIWebView header and saying there is doesn't help anyone it just confuses people.
There is currently no way in the SDK to prevent the bounceing of a UIWebView, if the javascript fix works then that might be your best bet.
Another option would be to set the UIWebView at the full height of the content and then put that in a UIScrollView and set that contentHeight to the height of your viewable area. The downside to this is I doubt it will render a webview greater than 1000 pixels height.
Hope that helps.
|