So I have a timed delay action so that one when one presses the button it would show a label after the set figure of time (5seconds)
-(IBAction)start{
Desc.text = @"Text appears";
[self performSelector:@selector(delay) withObject:nil afterDelay:5.0];
}
-(void)delay{
Desc2.text = @"Text to appear in 5 seconds";
[self performSelector:@selector(delayA) withObject:nil afterDelay:5.0];
}
As for the next line of code I’m trying to make is that instead of a label will come up after a scheduled time interval I’m trying to get a Button to appear in 5 seconds.
Can anyone help?
First your UIButton is must Hidden for example your button name is btn1 then in
viewDidLoad:Method Write this codefor use this code you drag and drop button on your xib and give the name is btn1 or as u wish…
i hope, this answer is helpful to you..
🙂