Xcode 6: can't connect any IBOutlet to ViewController

后端 未结 16 1842
眼角桃花
眼角桃花 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:11

    I was having this same problem, with no view outlet available to link to. The only way I was able to fix it was to change the owner class of the XIB file to "UIViewController," make the link, and then change it back to my intended custom view controller class. The link stayed and all was well.

提交回复
热议问题