【发布时间】:2018-08-01 15:40:07
【问题描述】:
我正在创建一个需要通知的应用。我创建了一个带有开关的设置页面,用于切换应用程序的通知。我尝试使用@IBAction 将开关链接到 ViewController2,但它一直将对象连接到 Exit,而不是 ViewController。我真的很沮丧,因为@IBAction 不会保持连接。我不确定发生了什么,但如果我能得到帮助,那就太棒了。
图片在下方链接到 Imigur。
This is the connection to ViewController2
This is what occurs when I connect the IBAction to ViewController2
You can see there is no action option for the connection in this image.
【问题讨论】:
-
我不太明白您所说的“此图像中的连接没有操作选项”是什么意思。 Value Changed 控件事件是,您可以在其中连接开关的操作。