标签:
#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; }
标签:
原文地址:http://www.cnblogs.com/pencilCool/p/4747532.html