We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa1d74e commit 9cf3210Copy full SHA for 9cf3210
1 file changed
FastImageCacheDemo/Classes/FICDPhoto.m
@@ -170,7 +170,8 @@ - (void)deleteThumbnail {
170
- (NSString *)UUID {
171
if (_UUID == nil) {
172
// MD5 hashing is expensive enough that we only want to do it once
173
- CFUUIDBytes UUIDBytes = FICUUIDBytesFromMD5HashOfString([_sourceImageURL absoluteString]);
+ NSString *imageName = [_sourceImageURL lastPathComponent];
174
+ CFUUIDBytes UUIDBytes = FICUUIDBytesFromMD5HashOfString(imageName);
175
_UUID = FICStringWithUUIDBytes(UUIDBytes);
176
}
177
0 commit comments