Xib file: Can't drag a View from a xib file to a swift file

主宰稳场 提交于 2019-12-04 17:11:46

The xib file needs to be a subclass of the file you are trying to ctrl+drag to.

I was setting the View's custom class instead of the File's Owner. Once I set the File's Owner to the custom class, I was able to control-drag from the view in the storyboard over to my class. Hope this helps someone.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!