Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why NetworkStatus rawValue dose not match to the Apple's Reachability ? #169

Open
kenmaz opened this issue Apr 12, 2018 · 0 comments
Open

Comments

@kenmaz
Copy link

kenmaz commented Apr 12, 2018

Could you please explain the reason for this mismatch ?

tonymillion/Reachability - Reachability.h

typedef NS_ENUM(NSInteger, NetworkStatus) {
    // Apple NetworkStatus Compatible Names.
    NotReachable = 0,
    ReachableViaWiFi = 2,
    ReachableViaWWAN = 1
};

Apple's Reachability sample code - Reachability.h

typedef enum : NSInteger {
    NotReachable = 0,
    ReachableViaWiFi,  //=1
    ReachableViaWWAN  //=2
} NetworkStatus;
@kenmaz kenmaz changed the title Why NetworkStatus rawValue dose not match Apple's Reachability ? Why NetworkStatus rawValue dose not match to the Apple's Reachability ? Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant