ボタンを押すと通知がポップアップするようにするためのコードがあります。10秒経過したら出てくるようにしたいです。
私はこれを行う必要があることを知っています:
(NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds invocation:
(NSInvocation *)invocation repeats:(BOOL)repeats
私の行動は:
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"UIAlertView"
message:[NSString stringWithFormat:@"%d", hi]
delegate:hi
cancelButtonTitle:@"Ok"
otherButtonTitles: nil];
[alert show];
}