iOS Question How to clear contents of ImageView

jai

Active Member
Licensed User
Longtime User
I have an ImageView that needs to show an image based on certain conditions otherwise it should be blank.

B4X:
ImageView1.Visible=False
is not the right solution for my needs.

How do I clear the bitmap contents of an Imageview?
 

jai

Active Member
Licensed User
Longtime User
The null Bitmap does not work.

ImageView1.Bitmap=Null

throws an error saying the object (Null) was not initialized.
 
Upvote 0

Humberto

Active Member
Licensed User
Longtime User
When I put a new image with transparency both appear.

I need too to erase and load a new one.
 
Upvote 0
Top