iphone Programming Glossary: request.url.relativepath
How to save the content in UIWebView for faster loading on next launch? http://stackoverflow.com/questions/1343515/how-to-save-the-content-in-uiwebview-for-faster-loading-on-next-launch YES NSLog @ CACHE REQUEST S @ request NSString documentsDirectory paths objectAtIndex 0 NSArray tokens request.URL.relativePath componentsSeparatedByString @ if tokens nil NSLog @ ignoring cache for @ request return nil NSString pathWithoutRessourceName.. pathWithoutRessourceName NSString absolutePathWithRessourceName NSString stringWithFormat @ @ @ documentsDirectory request.URL.relativePath NSString ressourceName absolutePathWithRessourceName stringByReplacingOccurrencesOfString absolutePath withString @ NSCachedURLResponse.. @ .jgz .location NSNotFound NSString storagePath NSString stringWithFormat @ @ myCache @ documentsDirectory request.URL.relativePath this ressource is candidate for cache. NSData content NSError error nil is it already cached if NSFileManager defaultManager..
|