开发者

hide an image in after a specific time period

开发者 https://www.devze.com 2023-02-11 04:14 出处:网络
How can I hide an ima开发者_开发百科ge after a specific time period?The simplest way I know is to use:

How can I hide an ima开发者_开发百科ge after a specific time period?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消