誰かが私がこれをどのように機能させるかについていくつかの光を当てることができますか: http://www.icab.de/blog/2009/08/18/url-filtering-with-uiwebview-on-the-iphone/
プロジェクトで「FilteredWebCache.h」と「FilteredWebCache.m」ファイルを作成しようとしましたが、「FilterManager.h」が存在しないと表示されました。それらのファイルで何をするつもりですか?
これをviewDidLoadに入れました:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *docDir = [paths objectAtIndex:0];
NSString *path = docDir; // the path to the cache file
NSUInteger discCapacity = 10*1024*1024;
NSUInteger memoryCapacity = 512*1024;
FilteredWebCache *cache = [[FilteredWebCache alloc] initWithMemoryCapacity:memoryCapacity diskCapacity:discCapacity diskPath:path];
[NSURLCache setSharedURLCache:cache];
[cache release];