Can't link connector from UIImageView declared as an IBOutlet in a class to the corresponding UIImageView on the View Controller in storyboard

女生的网名这么多〃 提交于 2019-12-25 03:43:29

问题


This question is a follow up to: Can't link connector from IBOutlet to View Controller

I would now like to link another object of UIImageView called image, defined in class B to the same UIImageView on the ViewController. I wasn't able to do this using the same method. I imagine this is because, the UIImageView on the ViewController is now of custom class B, and the object image is an instance of UIImageView. I tried to cheat xcode by changing back the custom class of the UIImageView to UIImageView; doing that not only gave me an exception but I also couldn't see the object 'image' in the black box anymore. Any suggestions?

来源:https://stackoverflow.com/questions/29420170/cant-link-connector-from-uiimageview-declared-as-an-iboutlet-in-a-class-to-the

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!