wait_fences:在选项卡中加载 UIWebview 时未能收到回复:10004003
我的应用程序从基于导航控制器开始,然后在用户登录后更改为基于选项卡栏。如果选择第二个选项卡,那么它将呈现ModalViewController。在这个 viewController 中,我像平常一样加载一个 webview。但问题是我第一次做presentModalViewController,然后我收到上面的警告消息,并且在presentModalViewController之前几秒钟没有响应(网页仍然完全加载 - 没有崩溃)。第一次之后就正常了(没有警告信息——很顺利)。
我尝试取出 webview,但我确实用图像呈现了 ModalViewController。没关系(没有警告消息)。但是,如果我仅将 IB 中的 Uiwebview 拖到我的视图控制器中,而不与 IBoutlets 进行任何连接。我仍然收到该警告消息。
我做了很多研究,比如这个,我尝试加载ViewDidLoad 和 ViewWillAppear 中的 Url 请求,但没有帮助
我的问题是如何绕过警告?由于这是我第一次收到此警告,可以忽略此警告吗?
请帮忙!非常感谢。
My application start with navigation Controller based, then change to Tabbar base after user login. If the second tab is selected, then it will presentModalViewController. In this viewController, I load a webview as normal I do. But the problem is for first time I do presentModalViewController, then I get the warning message above and it likes un-responded for few seconds before presentModalViewController (webpage is still loaded fully-no crashed). After the first time, it's normal (no warning message-very smooth).
I tried to take out the webview, I do presentModalViewController with a image instead. It's okay(no warning message). However, If i drag Uiwebview in IB into my viewcontroller only without any connecting with IBoutlets. I still get that warning message.
I did a lot of researches like this, I tried to load the Url request in both ViewDidLoad and ViewWillAppear, but it didn't help
My question is how can I pass by the warning? and is it okay to ignore this warning since this is my first time getting this warning?
Please help! Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试 -viewDidAppear:
当多个动画冲突时似乎会发生这种情况。
Try -viewDidAppear:
This seems to happen when multiple animations conflict.
我只是忽略这个警告。它不会导致任何崩溃
。
I just ignore the warning. It will not cause any crashes
.