我有 NSUserNotification 在我的应用程序中工作。出于某种原因,我在通知警报/横幅上获得了通用图标图像,而不是应用程序图标。该应用程序。图标已正确添加。它构建良好,图标显示在关于面板上。
我需要做什么才能用应用程序替换通知的通用图标。图标?
谢谢。
NSUserNotification *notification = [[NSUserNotification alloc] init];
notification.title = @"Operation Successful";
notification.informativeText = @"Image Processing Complete ...";
[[NSUserNotificationCenter defaultUserNotificationCenter]deliverNotification:notification];
- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification{
return YES;
}