Skip to content

Commit

Permalink
Fixed issue where NS_UNAVAILABLE is not reported to calling code as i…
Browse files Browse the repository at this point in the history
…t was previously just in the .m file - this allows the compiler to generate a build error when using the init method
  • Loading branch information
Microbee23 committed Aug 17, 2016
1 parent f51f0b8 commit 712ac61
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 712ac61

Please sign in to comment.