UIWebView导致UI锁定。(UIWebView Causing UI Lockup. No Crash or Logs)

编程入门 行业动态 更新时间:2024-10-28 17:28:24
UIWebView导致UI锁定。(UIWebView Causing UI Lockup. No Crash or Logs)

设置非常简单。

根控制器是一个标签栏控制器。 我的一个标签有一个带有tableview的导航控制器。 导航栏中的按钮应该将带有简单UIWebView的UIViewController压入堆栈。 按下该按钮时,UI会锁定。

我拿出了所有加载网页但没有帮助的代码。

控制台中没有任何内容。 内存或CPU使用率没有显着增加。 没有任何东西被抛出,根据调试器,应用程序运行正常。

我将它减少到我有一个空白的视图控制器为webview减去IB的属性和故事板segue。

The set up is quite simple.

Root Controller is a tab bar controller. One of my tabs has a navigation controller with a tableview. Button in nav bar is supposed to push UIViewController with a simple UIWebView onto the stack. When that button is pushed, the UI locks up.

I took out all the code that would load a webpage but that didn't help.

There is nothing in the console. No dramatic increases in memory or CPU usage. Nothing is thrown and according to the debuggers the app is running fine.

I reduced it to the point where I have a blank view controller for the webview minus the property for IB and a storyboard segue.

最满意答案

我想这只是一个损坏的Storyboard文件。 我刚把它清理干净,从头开始。 好像现在工作正常。

I guess it was just a corrupted Storyboard file. I just cleared it out and started from scratch. Seems to work fine now.

更多推荐

本文发布于:2023-08-01 04:01:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1352945.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Causing   UI   UIWebView   Logs   Crash

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!