Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (25 sloc) 786 Bytes
//
// WMAppDelegate.m
// WorldMap
//
// Created by kishikawa katsumi on 2012/09/24.
// Copyright (c) 2012 kishikawa katsumi. All rights reserved.
//
#import "WMAppDelegate.h"
#import "WMImageCache.h"
#import "AFNetworking.h"
@implementation WMAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES];
[[WMImageCache sharedInstance] deleteAllCacheFiles];
return YES;
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
[[WMImageCache sharedInstance] purgeMemoryCache];
}
- (void)applicationWillTerminate:(UIApplication *)application {
[[WMImageCache sharedInstance] deleteAllCacheFiles];
}
@end