Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Restore iOS 4.0 compatibility #322

Merged
merged 1 commit into from Apr 30, 2012
Merged

Restore iOS 4.0 compatibility #322

merged 1 commit into from Apr 30, 2012

Conversation

zwaldowski
Copy link
Contributor

This pull request removes the use of imp_implementationWithBlock (available on iOS 4.3 and up) and replaces it with a similar method using Objective-C Associated Objects (available on iOS 4.0 and up). The swizzling adds/replaces a method that looks up an associated value for the selector on the current class. This is super-safe (not spectacularly safe; safe for the superclass chain).

EDIT: This affects/closes issue #320.

Signed-off-by: Zachary Waldowski <zwaldowski@gmail.com>
@mattt mattt merged commit 25620fe into AFNetworking:master Apr 30, 2012
@mattt
Copy link
Contributor

mattt commented Apr 30, 2012

Thanks so much for adding this in. Yeah, I hadn't realized that the class swizzling method I originally was only introduced in 4.3. Cheers!

@kcharwood
Copy link
Contributor

Thanks for the fix @zwaldowski

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants