本文介绍了XIB不会创建UIWebView,并且始终为零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知所措。我有一个带有UIWebView的UIViewController。当我运行应用程序时,UIWebView永远不会被实例化。其他一切都很好。有没有人见过这个?

I am at a loss. I have a UIViewController with a UIWebView in it. When I run the application the UIWebView is never instantiated. Everything else comes up fine. Has anyone seen this before?

Rob

推荐答案

我找到了问题。 UIWebView未实例化显示UNTIL。在我将视图控制器推入导航控制器之前,我试图加载网站。

I found the problem. The UIWebView does not instantiated UNTIL it is displayed. I was trying to load the website before I pushed the view controller into the navigation controller.

这篇关于XIB不会创建UIWebView,并且始终为零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 00:56