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
477
477
UNNotificationContent *content = request.content ;
478
478
NSDictionary *userInfo = content.userInfo ;
479
479
480
- NSMutableDictionary *notificationDict = [NSMutableDictionary dictionaryWithCapacity: 5 ];
480
+ NSMutableDictionary *notificationDict = [NSMutableDictionary dictionary ];
481
481
482
482
// 通知时间
483
483
notificationDict[@" date" ] = response.notification .date ;
@@ -539,7 +539,7 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
539
539
// 取得APNS通知内容
540
540
NSDictionary *aps = [userInfo valueForKey: @" aps" ];
541
541
542
- NSMutableDictionary *notificationDict = [NSMutableDictionary dictionaryWithCapacity: 5 ];
542
+ NSMutableDictionary *notificationDict = [NSMutableDictionary dictionary ];
543
543
544
544
// 通知时间
545
545
notificationDict[@" date" ] = [NSDate init ];
You can’t perform that action at this time.
0 commit comments