Can't drag and drop item from storyboard to viewcontroller in xcode Can't drag and drop item from storyboard to viewcontroller in xcode xcode xcode

Can't drag and drop item from storyboard to viewcontroller in xcode


Select the ViewController in storyboard and change the name of the ViewController to the name in the .h or .m file and then try ctrl+click and dragenter image description here


For beginners -- > make sure you have kept the "Ctrl" key pressed down while dragging and dropping onto the code. This can be easily missed.


For me, the solution was to click on the "View" item in the dropdown menu that shows all the subviews for the controller.

Click on root view

Simply clicking on the controller image on the storyboard does not appear to properly "select" the controller for drag and drop abilities, the base view must be selected.