小编Clo*_*ync的帖子

如何使NSUserNotification超时?

我正在使用这种方法:

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秒后超时?

xcode cocoa notifications timeout objective-c

0
推荐指数
1
解决办法
454
查看次数

标签 统计

cocoa ×1

notifications ×1

objective-c ×1

timeout ×1

xcode ×1