Hey, there was an interesting issue on RestKit project RestKit/RestKit#1285
Looks like AFNetworking UIImageView category shares some method names with that of SDWebImage, which leads to weird bugs as seen above.
I wonder if there should be a af_ prefix, I understand that this will lead to big backwards compatibility breakage :/
A simple, lightweight solution for this in the context of a CocoaPods based install would be to move the UIImageView category into a subspec so that it can be installed optionally.
Backwards compatibility breakage or not, category methods should be prefixed to prevent this exact situation.
According to #822 there are additional UIKit categories going in to 2.0, so perhaps that would be an appropriate point to split into a subspec covering all UI.
#859 Prefixed UIImageView categories with "af_"
Why so sad?
sadface because of 1) that there is a collision, 2) the prefix naming is ugly to me, and 3) the api breakage you mentioned...
Sadfaces all around.
AFNetworking 2.0 will split the UIImageView category, along with other UIKit components into its own extension. This will obviate the need for an API change. For now, I will close this issue as "WontFix", though.
Of course, another solution would become strictly better than SDWebImage, making the situation moot ;)