Ios 通知中心中的图标

Ios 通知中心中的图标,ios,uilocalnotification,Ios,Uilocalnotification,在我的应用程序中,我使用UILocalNotification。我想用如下图标显示通知: 以下是我负责创建本地通知的代码: UILocalNotification *notification = [[UILocalNotification alloc] init]; notification.timeZone = [NSTimeZone defaultTimeZone]; notification.fireDate = date; notification.alertBody = body;

在我的应用程序中,我使用UILocalNotification。我想用如下图标显示通知:

以下是我负责创建本地通知的代码:

UILocalNotification *notification = [[UILocalNotification alloc] init];

notification.timeZone = [NSTimeZone defaultTimeZone];
notification.fireDate = date;
notification.alertBody = body;
notification.alertTitle = title;
notification.userInfo = userInfo;
notification.category = category;


[[UIApplication sharedApplication] scheduleLocalNotification:notification];
我在“UILocalNotification”对象中找到了“alertLaunchImage”字段,但它似乎不起作用。您能告诉我如何在本地通知中添加自定义图标吗