Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/111.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何将开关与插座连接_Ios_User Interface_Storyboard - Fatal编程技术网

Ios 如何将开关与插座连接

Ios 如何将开关与插座连接,ios,user-interface,storyboard,Ios,User Interface,Storyboard,我需要将我的UISwitch插座连接到connections inspector中的插座。但当我这么做的时候,我看到一把大锁。我检查了自定义类-一切正常。有什么问题 附:我所做的: 我试过这个:但是没有用。如何在代码中声明personSwitchControl?是的,它是@property(强,非原子)IBOutlet UISwitch*ParentSwitchControl好,如果其中一个发生了什么。1.从黄色圆圈(VC下方)拖动到开关。2.打开助理编辑器并从开关拖动到代码中的行。在所有情况下

我需要将我的
UISwitch
插座连接到connections inspector中的插座。但当我这么做的时候,我看到一把大锁。我检查了
自定义类
-一切正常。有什么问题

附:我所做的:


我试过这个:但是没有用。

如何在代码中声明
personSwitchControl
?是的,它是<代码>@property(强,非原子)IBOutlet UISwitch*ParentSwitchControl好,如果其中一个发生了什么。1.从黄色圆圈(VC下方)拖动到开关。2.打开助理编辑器并从开关拖动到代码中的行。在所有情况下,我都会看到锁。。。你能得到这个锁的截图吗。我以前从未见过它。