为什么我不能连接按钮退出?
Why I can't connect button to exit?
截图:
为什么它不起作用?
确保您已经在视图控制器中声明了操作:
@IBAction func myButton(_ sender: UIView) {
// DO STUFF
}
然后按住 control 从按钮拖动到黄色圆圈,里面有白色方块:
button target
截图:
为什么它不起作用?
确保您已经在视图控制器中声明了操作:
@IBAction func myButton(_ sender: UIView) {
// DO STUFF
}
然后按住 control 从按钮拖动到黄色圆圈,里面有白色方块: button target