From 9de2cb2228a710d0ad2e901f18e51badc538c318 Mon Sep 17 00:00:00 2001 From: Martin <112505290@qq.com> Date: Thu, 3 Dec 2015 15:25:33 +0800 Subject: [PATCH 1/2] in iOS9.0 AppDelegate need set root view controller --- PushDemo/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PushDemo/AppDelegate.m b/PushDemo/AppDelegate.m index 5e6a0f9..2bf6b50 100644 --- a/PushDemo/AppDelegate.m +++ b/PushDemo/AppDelegate.m @@ -22,7 +22,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible]; - + self.window.rootViewController = [[UIViewController alloc]init]; //[[UIApplication sharedApplication] setApplicationIconBadgeNumber:10]; //1.创建消息上面要添加的动作(按钮的形式显示出来) From c4c6f8067bd7109bcc934883f6fbbdc8aea3dc6a Mon Sep 17 00:00:00 2001 From: m8282823 Date: Thu, 3 Dec 2015 15:47:14 +0800 Subject: [PATCH 2/2] Create README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9072236 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# PushDemo +iOS8对推送消息的快速回复demo +iOS9.0下需要设置rootviewcontroller