设为首页 加入收藏

TOP

【代码笔记】iOS-用户发布后能保存崩溃
2017-10-13 10:08:40 】 浏览:749
Tags:代码 笔记 iOS- 用户 发布 后能 保存 崩溃

一,工程图。

二,代码。

AppDelegate.m

复制代码
#import "AppDelegate.h"
#import "RootViewController.h"
#import "NdUncaughtExceptionHandler.h"

@implementation AppDelegate



- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(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;
    
    
    //使用方法
   [NdUncaughtExceptionHandler setDefaultHandler];
   
    
    
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    return YES;
}
复制代码

 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇定制通用的标签选择器 下一篇【代码笔记】iOS-用户发布后能保..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目