From 3e8437ae559487362fae3525beb79c534c213a51 Mon Sep 17 00:00:00 2001 From: 单军华 Date: Thu, 12 Jul 2018 13:44:34 +0800 Subject: [PATCH] bug修复和功能优化 --- screendisplay/screendisplay/AppDelegate.m | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/screendisplay/screendisplay/AppDelegate.m b/screendisplay/screendisplay/AppDelegate.m index ca5cf1b..87dcc61 100644 --- a/screendisplay/screendisplay/AppDelegate.m +++ b/screendisplay/screendisplay/AppDelegate.m @@ -104,12 +104,14 @@ - (void)applicationDidEnterBackground:(UIApplication *)application { + NSSetUncaughtExceptionHandler(&getException); // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } - (void)applicationWillEnterForeground:(UIApplication *)application { + NSSetUncaughtExceptionHandler(&getException); // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } -- Gitblit v1.8.0