码迷,mamicode.com
首页 > 移动开发 > 详细

V2AppDelegate.h

时间:2015-08-21 13:21:17      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

#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;
}

 

V2AppDelegate.h

标签:

原文地址:http://www.cnblogs.com/pencilCool/p/4747532.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!