Per the SDWebImage about SDWebImage 3 supports iOS 5.0 ("The version 3.0 of SDWebImage isn't fully backward compatible with 2.0 and requires iOS 5.0 minimum deployement version").
However, I am having issues compiling it. I added it with Cocoapods to my iOS 5.1 project.
I am getting a compiling error complaining about the subscript syntax, it can be resolved by adding a category to NSObject to have subscripts in the .pch file, as suggested by Jeff Wolski here.
The specific error is
Expected method to read array element not found on object of type 'NSArray *'
It is having that compile error in multiple places, one example is in SDImageCache.m, in the initWithNamespace method:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); _diskCachePath = [paths[0] stringByAppendingPathComponent:fullNamespace];
While I am able to compile using Jeff Woski solution, I am concerned that SDWebImage 3 doesn't really support iOS 5.x and while it compiles I might have further issues in runtime.
Does SDWebImage 3 support iOS 5.x? Is there another way to fix the compiling issue?
Thanks.