Removing image from UIImageView

前端 未结 5 928
清酒与你
清酒与你 2021-02-01 00:44

I load a UIImageView with an image depending on user interaction. When the parent view is initially displayed, no image has been selected and the imageview is blac

5条回答
  •  不知归路
    2021-02-01 00:54

    Setting the UIImageView as:

    myImageView.image = nil 
    

    is the correct way to clear an UIImageView. Are you loading the image when your calling function returns? Is your UIImageView being declared, and/or used elsewhere in your main function?

提交回复
热议问题