You can switch off the bounce effect of a UIWebView using this script:
for (id subview in webView.subviews)
if ([[subview class] isSubclassOfClass: [UIScrollView class]])
((UIScrollView *)subview).bounces = NO;
Considering the Apple Review process it may be problematic that we make assumption of the inner structure of the UIWebView - but some apps have made it through...
for (id subview in webView.subviews)
if ([[subview class] isSubclassOfClass: [UIScrollView class]])
((UIScrollView *)subview).bounces = NO;
Considering the Apple Review process it may be problematic that we make assumption of the inner structure of the UIWebView - but some apps have made it through...
[[subview class] isSubclassOfClass: [UIScrollView class]]
ReplyDeleteshould be written as
[subview isKindOfClass: [UIScrollView class]]
@commter: looks nicer, agrree :)
ReplyDelete