XIB will not create UIWebView and is always nil

梦想的初衷 提交于 2019-12-13 05:21:11

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/9095529/xib-will-not-create-uiwebview-and-is-always-nil

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!