问题
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