Hide image after a certain period of time

How to hide the image after a certain period of time?

+4
source share
1 answer

The easiest way I know is to use:

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

and then set the method:

 -(void)hideImage{ image.hidden = YES; 

}

For the hide method, it really depends on which image you use, and if you want to show it later.

+12
source

Source: https://habr.com/ru/post/1339880/


All Articles