Permalink
Browse files

Added a comment

  • Loading branch information...
1 parent 84d18ca commit b36f0ed4447ec5f188e63c28bbad44b68662da38 @kcharwood kcharwood committed Oct 10, 2016
Showing with 7 additions and 0 deletions.
  1. +7 −0 UIKit+AFNetworking/AFImageDownloader.m
@@ -110,6 +110,13 @@ @interface AFImageDownloader ()
@implementation AFImageDownloader
+ (NSURLCache *)defaultURLCache {
+ // It's been discovered that a crash will occur on certain versions
+ // of iOS if you customize the cache.
+ //
+ // More info can be found here: https://devforums.apple.com/message/1102182#1102182
+ //
+ // When iOS 7 support is dropped, this should be modified to use
+ // NSProcessInfo methods instead.
if ([[[UIDevice currentDevice] systemVersion] compare:@"8.2" options:NSNumericSearch] == NSOrderedAscending) {
return [NSURLCache sharedURLCache];
}

0 comments on commit b36f0ed

Please sign in to comment.