简体   繁体   English

IOS - 控制 - 拖动按钮不起作用

[英]IOS - control-drag of a button is not working

I have some buttons I am trying to create, and when I try to do a control-drag into the controller, it isn't showing me the options to create configure that button. 我有一些我想要创建的按钮,当我尝试控制 - 拖动到控制器时,它没有向我显示创建配置该按钮的选项。 Any idea what could be wrong? 知道什么可能是错的吗? I am just following my first tutorial is its probably something for newbies. 我只是关注我的第一个教程,它可能是新手的东西。

My screen shot is attached. 我的屏幕截图已附上。 在此输入图像描述

It seems that you opened an incorrect .h file in your assistant editor, you will need to open the correct interface file for the correct view controller you have in your nib 您似乎在助理编辑器中打开了一个不正确的.h文件,您需要为您的笔尖中的正确视图控制器打开正确的接口文件

from what i can see is that LearningCenter should not be the interface opened, 从我所看到的是,LearningCenter不应该是打开的界面,

You will need to change the assistant view controller to the correct one Check the screen shot 您需要将助手视图控制器更改为正确的一个检查屏幕截图

在此输入图像描述

只需右键单击您选择最后一个选项的按钮(新引用插座集合。从该地图您的.h文件。当弹出窗口出现时。只需输入您的按钮名称。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM