Skip to content

Commit

Permalink
Merge pull request AFNetworking#3649 from Microbee23/bug/reachability…
Browse files Browse the repository at this point in the history
…-ns-unavailable

Fixed issue where `NS_UNAVAILABLE` is not reported for `AFNetworkReachabilityManager`
  • Loading branch information
kcharwood authored Sep 19, 2016
2 parents f51f0b8 + 712ac61 commit 1376762
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions AFNetworking/AFNetworkReachabilityManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (instancetype)initWithReachability:(SCNetworkReachabilityRef)reachability NS_DESIGNATED_INITIALIZER;

/**
* Initializes an instance of a network reachability manager
*
* @return nil as this method is unavailable
*/
- (nullable instancetype)init NS_UNAVAILABLE;

///--------------------------------------------------
/// @name Starting & Stopping Reachability Monitoring
///--------------------------------------------------
Expand Down

0 comments on commit 1376762

Please sign in to comment.