首页 > 移动平台 > 详细

V2AppDelegate.h

时间:2015-08-21 13:21:07      阅读:178      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!