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

前端 未结 13 1693
不知归路
不知归路 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:37

    Note that dragging to any point in your code doesn't necessarily work. If you've been unable to drag to create the connection in one spot of your code, try dragging to another spot. For me, I was trying to drag to add a connection in the middle of a function which didn't work. Dragging to the beginning line of a function or in between functions did work.

    Note: I'm on Xcode 9.1

提交回复
热议问题