zoukankan      html  css  js  c++  java
  • V2AppDelegate.h

    #import "V2AppDelegate.h"
    
    #import "V2RootViewController.h"
    
    #import "V2TopicStateManager.h"
    #import "SCWeiboManager.h"
    #import "SCWeixinManager.h"
    
    #import <Fabric/Fabric.h>
    #import <Crashlytics/Crashlytics.h>
    
    @implementation V2AppDelegate
    
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        // Preload StateManager
        [[AFNetworkReachabilityManager sharedManager] startMonitoring];
        
        [V2TopicStateManager manager];
        [V2SettingManager manager];
        [V2CheckInManager manager];
        [SCWeiboManager manager];
        [SCWeixinManager manager];
        
        // Configure URLCache capacity
        // Set URLCache to 3MB
        // yhtanglearn ()http://nshipster.cn/nsurlcache/
        NSURLCache *URLCache = [[NSURLCache alloc] initWithMemoryCapacity:5 * 1024 * 1024
                                                             diskCapacity:3 * 1024 * 1024
                                                                 diskPath:nil];
        [NSURLCache setSharedURLCache:URLCache];
    
        
        self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
        self.window.backgroundColor = [UIColor whiteColor];
    
        self.rootViewController = [[V2RootViewController alloc] init];
        self.window.rootViewController = self.rootViewController;
            
        [self.window makeKeyAndVisible];
        
        [Fabric with:@[CrashlyticsKit]];
    
        return YES;
    }
  • 相关阅读:
    随机购买彩票问题
    for循环小题
    20150914 异常语句 math的方法 去空格 索引
    20150913生成三个10以内的随机数,不想等
    winform 计算器 两步走
    枚举、常量、结构
    视频嵌入网页, 分享嵌入网页!
    !!!框架集
    日常总结!!!
    随笔练习!!!
  • 原文地址:https://www.cnblogs.com/pencilCool/p/4747532.html
Copyright © 2011-2022 走看看