From ee8af85b5823f26025c980ae80c5f8c19259e8b8 Mon Sep 17 00:00:00 2001 From: cclv Date: Mon, 15 Jun 2015 17:45:11 +0800 Subject: [PATCH] there is an error @ DemoApp.. registerUserNotificationSettings <- registerForRemoteNotificationTypes --- DemoApp/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DemoApp/AppDelegate.m b/DemoApp/AppDelegate.m index 5fc9eec..dc77e25 100644 --- a/DemoApp/AppDelegate.m +++ b/DemoApp/AppDelegate.m @@ -14,7 +14,7 @@ @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. - [application registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeBadge)]; + [application registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound categories:nil]; application.applicationIconBadgeNumber = 0; [[JRNLocalNotificationCenter defaultCenter] setLocalNotificationHandler:^(NSString *key, NSDictionary *userInfo) {