|
@@ -62,7 +62,10 @@
|
|
|
UIUserNotificationType types;
|
|
UIUserNotificationType types;
|
|
|
UIUserNotificationSettings *settings;
|
|
UIUserNotificationSettings *settings;
|
|
|
|
|
|
|
|
- types = UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound;
|
|
|
|
|
|
|
+ settings = [[UIApplication sharedApplication]
|
|
|
|
|
+ currentUserNotificationSettings];
|
|
|
|
|
+
|
|
|
|
|
+ types = settings.types|UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound;
|
|
|
|
|
|
|
|
settings = [UIUserNotificationSettings settingsForTypes:types
|
|
settings = [UIUserNotificationSettings settingsForTypes:types
|
|
|
categories:nil];
|
|
categories:nil];
|