Search code examples
cocoa-touchioscore-animation

How to hide an image after one second


I want to hide an image after one second, as a flip animation ends. Please someone help me.


Solution

  • Assuming that you need to hide after loading from viewDidLoad, Declare following in your viewDidLoad;

    [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(hideYourImage) userInfo:nil repeats:NO];
    
    -(void)hideYourImage
    {
        [yourImageView setHidden:TRUE];
    }
    

    Here you are. Hope it helps.