I have the code to make it so a notification pops up when I press a button. I want it so it appears when 10 seconds is up.
I know i need to do this:
(NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds invocation:
(NSInvocation *)invocation repeats:(BOOL)repeats
My action is:
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"UIAlertView"
message:[NSString stringWithFormat:@"%d", hi]
delegate:hi
cancelButtonTitle:@"Ok"
otherButtonTitles: nil];
[alert show];
}