无法在 UIImageView 和 ViewController.h 之间创建连接

Cannot create a connection between a UIImageView and the ViewController.h

我无法在 UIImageView 和 ViewController.h 之间创建连接。

当我尝试手动输入并拖到 UIImageView 时,它没有突出显示 UIImageView,并且没有建立连接。 当我尝试自动连接时,也没有建立连接。 你能帮帮我吗?

谢谢!

通过 Interface Builder 打开故事板,并确保 class 设置正确(您尝试连接插座的控制器 class)。