EVURLCache是NSURLCache的子类,用于处理使用 NSURLRequest的web请求。
代码示例:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { EVURLCache.LOGGING = true // We want to see all caching actions EVURLCache.MAX_FILE_SIZE = 26 // We want more than the default: 2^26 = 64MB EVURLCache.MAX_CACHE_SIZE = 30 // We want more than the default: 2^30 = 1GB EVURLCache.activate() return true}
评论