Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

I started working with xcode a few days ago, and today I tried to connect a textview from the main storyboard to the viewcontroller, but I figured out that its not working.

I am able to ctrl+click to drag the item, but unable to place it in both viewcontroller.h and .m. I double checked that its viewcontroller and not UIViewcontroller, so this is not the case.

I'm using a Yosemite 10.10 mac.

Any kind of help would be appreciated.

like image 276
Ohad Klein Avatar asked Jul 16 '15 12:07

Ohad Klein


People also ask

Can you mix storyboard and SwiftUI?

The answer is YES! Here we will be discussing a simple way to use SwiftUI into our existing project, which already consists of a storyboard.


1 Answers

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 drag enter image description here

like image 184
Suhit Patil Avatar answered Nov 15 '22 10:11

Suhit Patil