Skip to content

Commit cf8160d

Browse files
author
Michael Shannon Potter
committed
Update README
1 parent 85d7e01 commit cf8160d

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ A significant burden on performance for graphics-rich applications like [Path](h
3131
- [**1.0**](https://github.com/path/FastImageCache/releases/tag/1.0) (10/18/2013): Initial release
3232
- [**1.1**](https://github.com/path/FastImageCache/releases/tag/1.1) (10/22/2013): Added ARC support and more robust Core Animation byte alignment
3333
- [**1.2**](https://github.com/path/FastImageCache/releases/tag/1.2) (10/30/2013): Added support for image format styles and canceling image requests
34+
- [**1.3**](https://github.com/path/FastImageCache/releases/tag/1.3) (03/30/2014): Significant bug fixes and performance improvements.
3435

3536
## What Fast Image Cache Does
3637

@@ -128,6 +129,12 @@ For example, if an original image is resized by an entity to create a thumbnail
128129

129130
Image format families can be specified to efficiently make use of a single source image. See [Working with Image Format Families](#working-with-image-format-families) for more information.
130131

132+
### Data Protection
133+
134+
In iOS 4, Apple introduced data protection. When a user's device is locked or turned off, the disk is encrypted. Files written to disk are protected by default, although applications can manually specify the data protection mode for each file it manages. With the advent of new background modes in iOS 7, applications can now execute in the background briefly even while the device is locked. As a result, data protection can cause issues if applications attempt to access files that are encrypted.
135+
136+
Fast Image Cache lets your specify the data protection mode each of its image tables should use. Be aware that enabling data protection for image table files means that Fast Image Cache might not be able to read or write image data from or to these files when the disk is encrypted.
137+
131138
## Requirements
132139

133140
Fast Image Cache requires iOS 6.0 or greater and relies on the following frameworks:
@@ -166,13 +173,18 @@ Before the image cache can be used, it needs to be configured. This must occur e
166173
Each image format corresponds to an image table that the image cache will use. Image formats that can use the same source image to render the images they store in their image tables should belong to the same [image format family](#working-with-image-format-families). See [Image Table Size](#image-table-size) for more information about how to determine an appropriate maximum count.
167174

168175
```objective-c
176+
static NSString *XXImageFormatNameUserThumbnailSmall = @"com.mycompany.myapp.XXImageFormatNameUserThumbnailSmall";
177+
static NSString *XXImageFormatNameUserThumbnailMedium = @"com.mycompany.myapp.XXImageFormatNameUserThumbnailMedium";
178+
static NSString *XXImageFormatFamilyUserThumbnails = @"com.mycompany.myapp.XXImageFormatFamilyUserThumbnails";
179+
169180
FICImageFormat *smallUserThumbnailImageFormat = [[FICImageFormat alloc] init];
170181
smallUserThumbnailImageFormat.name = XXImageFormatNameUserThumbnailSmall;
171182
smallUserThumbnailImageFormat.family = XXImageFormatFamilyUserThumbnails;
172183
smallUserThumbnailImageFormat.style = FICImageFormatStyle16BitBGR;
173184
smallUserThumbnailImageFormat.imageSize = CGSizeMake(50, 50);
174185
smallUserThumbnailImageFormat.maximumCount = 250;
175186
smallUserThumbnailImageFormat.devices = FICImageFormatDevicePhone;
187+
smallUserThumbnailImageFormat.protectionMode = FICImageFormatProtectionModeNone;
176188

177189
FICImageFormat *mediumUserThumbnailImageFormat = [[FICImageFormat alloc] init];
178190
mediumUserThumbnailImageFormat.name = XXImageFormatNameUserThumbnailMedium;
@@ -181,6 +193,7 @@ mediumUserThumbnailImageFormat.style = FICImageFormatStyle32BitBGRA;
181193
mediumUserThumbnailImageFormat.imageSize = CGSizeMake(100, 100);
182194
mediumUserThumbnailImageFormat.maximumCount = 250;
183195
mediumUserThumbnailImageFormat.devices = FICImageFormatDevicePhone;
196+
mediumUserThumbnailImageFormat.protectionMode = FICImageFormatProtectionModeNone;
184197

185198
NSArray *imageFormats = @[smallUserThumbnailImageFormat, mediumUserThumbnailImageFormat];
186199
```

0 commit comments

Comments
 (0)