Xib文件:无法将视图从xib文件拖到快速文件 [英] Xib file: Can't drag a View from a xib file to a swift file

查看:59
本文介绍了Xib文件:无法将视图从xib文件拖到快速文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是将View拖放到了xib文件中.我添加了一些限制,并尝试使用助手编辑器将Ctrl从View拖动到.swift文件中,但是它又反弹了,我还缺少什么?

I just dragged and dropped a View to a xib file. I added some constrains and tried to Ctrl drag from the View to a .swift file with the assistant editor, but it bounce back, what am I missing?

推荐答案

xib文件必须是您要ctrl +拖动到的文件的子类.

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

这篇关于Xib文件:无法将视图从xib文件拖到快速文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆