Damocs Young
Results
2
issues of
Damocs Young
您好, iOS最新的推送通知中,有这样一个方法,用于通知界面进行快捷操作: ``` - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)())completionHandler{ //iOS10 NSString *categoryId = response.notification.request.content.categoryIdentifier; if ([actionId isEqualToString:"some_category"]) { //含NSSet的代码 [center getNotificationCategoriesWithCompletionHandler:^(NSSet * _Nonnull categories) { for (UNNotificationCategory *category in...