简体   繁体   English

Xcode中的Control-Drag提供了约束选项而不是IBOutlet选项

[英]Control-drag in Xcode provides constraint options instead of IBOutlet options

I've added a new IBOutlet that I want to connect in Interface Builder - however, all of a sudden, control-dragging from the class to the interface item provides me with a list of constraint options instead of a list of outlets/received actions. 我添加了一个我想在Interface Builder中连接的新IBOutlet但是,突然之间,从类到界面项的控件拖动为我提供了一个约束选项列表,而不是出口/已接收动作的列表。 。

This does not seem to affect all items, only some of them, but I've double-checked both the designated class of the cell view, as well as the @IBOutlet declaration in the source file, and everything seems to match up properly: 这似乎并不影响所有项目,仅影响其中一些项目,但是我已经仔细检查了单元格视图的指定类以及源文件中的@IBOutlet声明,并且一切似乎都正确匹配:

在此处输入图片说明

通过右键单击源项目(不拖动),然后连接列表中的各个出口,我能够解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如果'@end'是头文件的最后一行,Xcode 4 control-drag将不会创建第一个IBOutlet或IBAction - Xcode 4 control-drag won't create first IBOutlet or IBAction if '@end' is a header file's last line 界面生成器:更改控件 - 拖动IBOutlet键盘快捷键 - Interface Builder: Change control-drag IBOutlet keyboard shortcut 是否可以使用触控板在Xcode中进行控制拖动并单击以单击? - Is it possible to control-drag in Xcode with a trackpad and tap-to-click? xCode无法控制拖动到.m文件 - xCode can't Control-drag into .m file Xcode中的Control-drag给出了出口,但是UIButton没有动作。 为什么? - Control-drag in Xcode gives outlets, but no action for UIButton. Why? 按住Control并拖动到AppDelegate仅 - Control-drag to AppDelegate only 在 Storyboard 中按住 Control 并拖动 UIView 以显示 controller? - Control-drag UIView in Storyboard to present a controller? 无法控制在故事板中的可可触摸uiview类和子视图之间的xcode中拖动 - Cannot control-drag in xcode between cocoa touch uiview class and subview in storyboard 无法控制拖动到ViewController.swift - Cannot Control-Drag into ViewController.swift Xcode —故事板上的Control + Drag的替代选项,可为按钮创建控件segue - Xcode — Alternate options for control+drag in story board to create a control segue for button
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM