URL Loading System Programming Guide - Apple Developer
URL Loading System Programming Guide - Apple Developer
URL Loading System Programming Guide - Apple Developer
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Understanding Cache Access<br />
Controlling Caching Programmatically<br />
userInfo:newUserInfo<br />
storagePolicy:NS<strong>URL</strong>CacheStorageAllowedInMemoryOnly];<br />
#else // !ALLOW_IN_MEMORY_CACHING<br />
newCachedResponse = nil<br />
#endif // ALLOW_IN_MEMORY_CACHING<br />
} else {<br />
newCachedResponse = [[NSCached<strong>URL</strong>Response alloc]<br />
initWithResponse:[cachedResponse response]<br />
data:[cachedResponse data]<br />
userInfo:newUserInfo<br />
storagePolicy:[cachedResponse storagePolicy]];<br />
}<br />
return newCachedResponse;<br />
}<br />
2013-10-22 | Copyright © 2003, 2013 <strong>Apple</strong> Inc. All Rights Reserved.<br />
61