JCTimmypage Asked: 2020-05-18 14:03:20 +0800 CST 2020-05-18 14:03:20 +0800 CST 2020-05-18 14:03:20 +0800 CST Get name of assigned image [closed] 772 UIImageviewHow can I get the name of the image that has an or UIButtonor assigned to it?UILabel objective-c 1 Answers Voted Best Answer Jorgesys 2020-05-18T15:51:59+08:002020-05-18T15:51:59+08:00 This cannot be done, the reason is simply that the instance of UIImageview, UIButtonor UILabeldoes not store the image!. Besides that it only displays an instance of the image (UIImage). A reference or path to the image is not stored. https://developer.apple.com/reference/uikit/uiimageview
This cannot be done, the reason is simply that the instance of
UIImageview
,UIButton
orUILabel
does not store the image!. Besides that it only displays an instance of the image (UIImage).A reference or path to the image is not stored. https://developer.apple.com/reference/uikit/uiimageview