【发布时间】:2019-05-23 16:33:17
【问题描述】:
我们正在使用 Ti SDK 8.0.0 GA 并在 iOS 12.2 设备上运行应用程序。 尝试从文件夹加载 PDF。它无法加载。它在模拟器中运行良好。
在 Ti SDK 7.5.1 GA 中也能正常工作。
Ti.UI.createWebView({
url : factSheetPath,
scalesPageToFit : true,
backgroundColor : "transparent",
disableBounce : true,
willHandleTouches : true
});
factSheetPath 是这样的
file:///var/mobile/Containers/Data/Application/8F59DFDF-E475-4383-96DC-2DCC5FDDC2DB/Documents/download/pdf_factsheets/1.pdf
任何建议!
【问题讨论】:
-
移动到 tmp 文件夹并在 WebView 中打开它。但在 SDK 或 iOS 中似乎有问题。
标签: appcelerator appcelerator-titanium