• 1483阅读
  • 1回复

iOS 无法显示本地html [复制链接]

上一主题 下一主题
离线nikonice
 

只看楼主 正序阅读 楼主  发表于: 2021-02-01
WebView
{
id:web
anchors.centerIn: parent
anchors.fill: parent
url:"test.html";
}
在Xcode加载本地test.html显示空白
Xcode提示:
2021-02-01 08:20:09.445040+0800 GstDebugWizard[367:11897] WF: === Starting WebFilter logging for process GstDebugWizard
2021-02-01 08:20:09.445097+0800 GstDebugWizard[367:11897] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2021-02-01 08:20:09.445137+0800 GstDebugWizard[367:11897] WF: _WebFilterIsActive returning: NO

Xcode的定位、http请求权限已开。
test.html代码如下:
<font color = "red">TTTTTT</font>


本帖提到的人: @xiaoyu2005 @samdysky
离线nikonice

只看该作者 1楼 发表于: 2021-02-02
经过各种查资料,终于搞定了
分享一下
https://blog.csdn.net/nikon800/article/details/113564455
快速回复
限100 字节
 
上一个 下一个