Somethings I have a navigation controller and a view controller in my Main.Storyboard, but for some reason I can't create and link IBActions by holding down CTRL and clicking on a button on my view controller, then dragging it to my ViewController.swift. I could do this earlier!? What happened? Thanks
3 Answers
Solved! I'm using a program that allows my mouse and keyboard to work between my Mac and PC without taking it out of the USB ports (works over LAN). For some reason the program is not recognizing a CTRL press which was causing the problem. After switch the keyboard to the mac itself, everything works!
1 Comment
this happened to me before : click on the view controller and then go to utilities -> identity inspector , and check the "Class"
The class has to be the same as the file you're trying to ctrl drag into
here is the picture: https://www.dropbox.com/s/5451kzit16espjo/Screen%20Shot%202015-07-08%20at%2010.50.45%20AM.png?dl=0
Comments
- Open your xib file or storyBoard
- Click on File’s Owner
- Click on Identity Inspector and check class has same name as the file you’re trying to ctrl drag
This guy have awesome solution. Just need to correct your class name
ViewControllerclass on Main.Storyboard?