File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -477,7 +477,7 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNoti
477477 UNNotificationContent *content = request.content ;
478478 NSDictionary *userInfo = content.userInfo ;
479479
480- NSMutableDictionary *notificationDict = [NSMutableDictionary dictionaryWithCapacity: 5 ];
480+ NSMutableDictionary *notificationDict = [NSMutableDictionary dictionary ];
481481
482482 // 通知时间
483483 notificationDict[@" date" ] = response.notification .date ;
@@ -539,7 +539,7 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
539539 // 取得APNS通知内容
540540 NSDictionary *aps = [userInfo valueForKey: @" aps" ];
541541
542- NSMutableDictionary *notificationDict = [NSMutableDictionary dictionaryWithCapacity: 5 ];
542+ NSMutableDictionary *notificationDict = [NSMutableDictionary dictionary ];
543543
544544 // 通知时间
545545 notificationDict[@" date" ] = [NSDate init ];
You can’t perform that action at this time.
0 commit comments