我找到了解決方案。
您需要訪問UIWebView(StageWebView下的基礎iOS實現)以禁用彈性滾動。
一旦你有你的Adobe本地擴展(ANE)設置,它相對簡單。 (一個偉大的ANE嚮導/發生器在這裏找到https://github.com/freshplanet/ANE-Wizard)
對於iOS 5其直截了當:webView.scrollView.bounces = NO;
如果你想支持iOS 4,它會變得更復雜一些。您沒有webView.scrollView的便利性,所以您需要手動查找此視圖。
的Objective-C代碼塊,說明如何處理的iOS 4和5將是這樣的:
NSString *currSysVer = [[UIDevice currentDevice] systemVersion];
if ([currSysVer compare:@"5.0" options:NSNumericSearch] != NSOrderedAscending) {
// iOS 5 is straightforward
webView.scrollView.bounces = NO;
}
else {
// iOS 4 requires a bit more of work
UIScrollView *scrollView = nil;
for (UIView *subview in [webView subviews])
{
if ([subview isKindOfClass:[UIScrollView class]]) {
scrollView = (UIScrollView *)subview;
}
}
if (scrollView != nil) {
scrollView.bounces = NO;
}
}
希望這有助於!