Hello friends I'd be happy if you help me
I wanted to know how I make a delay of the next view?
I mean I have a view with a button, and clicking on the button I show a picture. I want to wait a few seconds after I show the pic and switch in modal to the next view
I tried a lot and it's not working
Here is example for my try :
- (IBAction)button1Click:(id)sender {
// here after i click i want to show the pic in imageview for some seconds
self.imageView.image = [UIImage imageNamed:@"bird.png"];
// and then i call to the function for waiting some seconds before the view change by modal
[self delayView];
}
- (void)delayView {
[NSThread sleepForTimeInterval:8.0];
}
Also i try to use :
[self performSelector : @selector() withObject : self afterDelay : 3.00];
but i didn't know exactly how to use the @selector()
Please I would appreciate your help