1

我有 NSUserNotification

NSUserNotification *n = [NSUserNotification new];
n.title = self.title;
n.subtitle = self.subtitle;
[NSUserNotificationCenter.defaultUserNotificationCenter deliverNotification:n];

但我无法控制它的横幅显示时间?是否可以使用一些私有 api 来控制它

    [n setValue:@(self.ignoresDoNotDisturb) forKey:@"_ignoresDoNotDisturb"];
4

0 回答 0