Important: iOS ignores this cache policy, and instead treats it as NSURLCacheStorageAllowedInMemoryOnly.
Disk にキャッシュする機能は iPhone では 提供されていない。自前でなんとかしなくちゃいけないらしい。
キャッシュのキャパシティを設定しておかないと
willCacheResponse は呼ばれない。
キャッシュのキャパシティの設定:
[ [ NSURLCache sharedURLCache ] setMemoryCapacity:100000 ];
posted by
Saturn on Wed 27 Oct 2010 at 09:18 with 0 comments