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

前端 未结 13 1438
不知归路
不知归路 2021-02-02 10:54

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.

13条回答
  •  失恋的感觉
    2021-02-02 11:32

    Hey I think you are not connected your storyboard viewController with your viewController class. check screen shot which "suhit" uploaded in his answer. I would like to tell you something more than it. When ever you need to connect any storyboard object with class.

    • first go to utility panel (right side) and then set class there.
    • after that you can connect your controls with class

    I hope it will help you.

提交回复
热议问题