Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我在 UIWebView 中加载包含大量内容的请求,应用程序在完成下载内容并开始渲染后变得无响应。加载的文档还包含一些将在文档加载时执行的 Java 脚本内容。
此外,如果我通过按主页按钮最小化应用程序,应用程序会崩溃。
如何解决这些问题?
看看http://www.raywenderlich.com/4295/multithreading-and-grand-central-dispatch-on-ios-for-beginners-tutorial
在“Grand Central Dispatch in Practice”部分描述了您的问题和最佳实践解决方案。
此致!