Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hide an image in after a specific time period

How can I hide an image after a specific time period?

like image 939
anas Avatar asked Dec 16 '22 17:12

anas


1 Answers

The simplest way I know is to use:

[self performSelector:@selector(hideImage) withObject:nil afterDelay:2.0];

and then set a method:

-(void)hideImage{

 image.hidden = YES;

}

For the hiding method it is really depends on what kind of image you are using and if you want to show it again later.

like image 127
shannoga Avatar answered Jan 03 '23 05:01

shannoga