Xcode 6: can't connect any IBOutlet to ViewController

后端 未结 16 1819
眼角桃花
眼角桃花 2020-12-03 07:17

After upgrading to Xcode 6, I opened an old project (that contains a subproject, so it has many targets) and I noticed that no link from my Storyboard ViewContoller to the r

16条回答
  •  既然无缘
    2020-12-03 08:21

    Maybe I can help In my case the problem was that the viewController.swift file was not connected to the StoryBoard. The solution is to click in the Upper border of the view on the storyboard beside the 3 icons (View Controller, First Responder and Exit)...now look over in the Utility Area choose Identity Inspector, and in "Custom Class" choose the custom view controller.

    Hope this helps. Xcode is hard!!

提交回复
热议问题