Xcode 6: can't connect any IBOutlet to ViewController

后端 未结 16 1821
眼角桃花
眼角桃花 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 07:56

    I've experienced similar behaviour in Xcode 6.1.1 when trying to add the first outlet to a new view.

    Tried removing the references and adding the files again as suggested above with no success.

    What I did find worked was writing the first property on the new view by hand. I just popped in:

    @property NSString *temp;
    

    I could then attach my outlets in the normal way. Just delete the temporary property once you've added your first outlet.

    Hope this helps.

提交回复
热议问题