我正在使用这种方法:
NSUserNotification *notification = [[NSUserNotification alloc] init];
notification.title = @"Title";
notification.informativeText = @"body";
notification.soundName = NSUserNotificationDefaultSoundName;
[[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:notification];
Run Code Online (Sandbox Code Playgroud)
如何让它在3秒后超时?