Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix AssociatedObject bug #3872

Merged
merged 1 commit into from Jan 5, 2020
Merged

fix AssociatedObject bug #3872

merged 1 commit into from Jan 5, 2020

Conversation

@welcommand
Copy link
Contributor

welcommand commented Feb 10, 2017

example UIImageView (AFNetworking)
in "sharedImageDownloader:" self is [UIImageView class].
than i have a class like this UserImageView : UIImageView , in "sharedImageDownloader:" self is [UserImageView class].
[UIImageView class] != [UserImageView class]
so call [UserImageView sharedImageDownloader] , the objc_getAssociatedObject(self, @selector(sharedImageDownloader)) returns value is always nil.

@tewha

This comment has been minimized.

Copy link
Contributor

tewha commented Feb 16, 2017

Nice find.

@jshier jshier added the needs review label Oct 21, 2019
@jshier
jshier approved these changes Jan 5, 2020
Copy link
Contributor

jshier left a comment

👍 Nice find!

@jshier jshier merged commit 555385d into AFNetworking:master Jan 5, 2020
1 check failed
1 check failed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.