typedef NS_ENUM(NSInteger, NetworkStatus) {
// Apple NetworkStatus Compatible Names.
NotReachable = 0,
ReachableViaWiFi = 2,
ReachableViaWWAN = 1
};
typedef enum : NSInteger {
NotReachable = 0,
ReachableViaWiFi, //=1
ReachableViaWWAN //=2
} NetworkStatus;
Could you please explain the reason for this mismatch ?
tonymillion/Reachability - Reachability.h
Apple's Reachability sample code - Reachability.h