[Code notes] the user can save the crash and code notes after publishing.
1. Engineering Drawing.
Ii. Code.
AppDelegate. m
# Import "AppDelegate. h "# import" RootViewController. h "# import" NdUncaughtExceptionHandler. h "@ implementation AppDelegate-(BOOL) application :( UIApplication *) application didfinishlaunchingwitexceptions :( NSDictionary *) launchOptions {self. window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]; // Override point for customization after application launch. rootViewController * rootVC = [[RootViewController alloc] init]; UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController: rootVC]; self. window. rootViewController = nav; // usage method [NdUncaughtExceptionHandler setDefaultHandler]; self. window. backgroundColor = [UIColor whiteColor]; [self. window makeKeyAndVisible]; return YES ;}