IOS: IBOutlet nil in Xcode 6

Using iOS 8 and Xcode 6. I integrated the UIWebView into the controller using the storyboard and connected everything. However, when I run it, the webView approaches zero. Any thoughts?

enter image description here

+4
source share
3 answers

What helped me is this answer # 1 here .

  • Clear project
  • Close Xcode
  • Delete all contents ~ / Library / Developer / Xcode / DerivedData /
  • MacOS restart

It is in that order.

+1
source

Change the weak @property for webView.

0
source

, , : - Apple xib . Xcode , ViewController.swift ViewController.xib. . :

NSBundle.mainBundle().loadNibNamed("ViewController", owner: self, options: nil)

, Objective C:

[[NSBundle mainBundle] loadNibNamed:@"ViewController" owner:self options:nil];

VC, - IBOutlets ( "ViewController" ). , ( Swift).

. :

nib iOS 8 beta 5?

xib

0

Source: https://habr.com/ru/post/1547815/


All Articles