Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我按照如何在 Xcode 4.3.1 中向类添加操作或出口中的说明进行操作时?,或 Apple 的 First iOS App 教程,没有 Action 选项。只有插座和插座连接选项。我究竟做错了什么?
您只能将操作连接到UIControl.
UIControl
您正在尝试从 a 创建一个动作UIView,它不是 UIControl 的子类并且没有动作。
UIView
从按钮开始拖动,而不是“主视图”