3

通知が発生すると、1秒ごとに繰り返されるローカル通知をスケジュールしようとしています。通知は、アプリケーションの開始から 10 秒後に発生します。

UILocalNotification *notif = [[cls alloc] init];

    notif.fireDate = [[NSDate alloc]initWithTimeInterval:10 sinceDate:[NSDate date]];
    notif.timeZone = [NSTimeZone defaultTimeZone];
    notif.alertBody = @"Did you forget something?";
    notif.alertAction = @"Show me";
    //notif.soundName = UILocalNotificationDefaultSoundName;
    notif.soundName = @"applause-light-01.wav";
    notif.applicationIconBadgeNumber = 1;
    notif.repeatInterval = NSSecondCalendarUnit;
    [[UIApplication sharedApplication] scheduleLocalNotification:notif];

使ったのにnotif.repeatInterval = NSSecondCalendarUnit、60秒後に通知を繰り返す。私が間違っていることは何ですか?

4

1 に答える 1