This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix AFNetworkActivityIndicatorManager for iOS 7...dubiously
This swizzle used to assume that all `NSURLSessionTask` instances had a superclass named `NSURLSessionTask`. That is not true on iOS 7 devices. Therefore, we need to somehow swizzle the the superclass, which is `__NSCFLocalSessionTask` on iOS 7. This is a way to do it without explicitly mentioning or calling any private API. However, it does end up adding and swizzling methods on `__NSCFLocalSessionTask`. Is this legal? I cannot say for sure.
- Loading branch information
1 parent
3a1785c
commit 27964aa
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters