{"action":"created","issue":{"url":"https://api.github.com/repos/ibireme/YYKit/issues/209","repository_url":"https://api.github.com/repos/ibireme/YYKit","labels_url":"https://api.github.com/repos/ibireme/YYKit/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/ibireme/YYKit/issues/209/comments","events_url":"https://api.github.com/repos/ibireme/YYKit/issues/209/events","html_url":"https://github.com/ibireme/YYKit/issues/209","id":156086196,"number":209,"title":"使用YYReachability监听网络状态的时候。。 WIFI状态下NotifyBlock回调无网络~","user":{"login":"MichaelHuyp","id":12581809,"avatar_url":"https://avatars.githubusercontent.com/u/12581809?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelHuyp","html_url":"https://github.com/MichaelHuyp","followers_url":"https://api.github.com/users/MichaelHuyp/followers","following_url":"https://api.github.com/users/MichaelHuyp/following{/other_user}","gists_url":"https://api.github.com/users/MichaelHuyp/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelHuyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelHuyp/subscriptions","organizations_url":"https://api.github.com/users/MichaelHuyp/orgs","repos_url":"https://api.github.com/users/MichaelHuyp/repos","events_url":"https://api.github.com/users/MichaelHuyp/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelHuyp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-21T05:59:15Z","updated_at":"2016-05-22T11:35:20Z","closed_at":null,"body":"这是我的代码。。 大神看下是我用错了么\r\n#pragma mark - 网络监测\r\n- (void)networkMonitoring\r\n{\r\n    self.reachability = [YYReachability reachabilityWithHostname:@\"https://www.baidu.com/\"];\r\n    [self.reachability setNotifyBlock:^(YYReachability * reachability) {\r\n        YYReachabilityStatus status = reachability.status;\r\n        YYReachabilityWWANStatus wwanStatus = reachability.wwanStatus;\r\n        switch (status) {\r\n            case YYReachabilityStatusNone:\r\n            {\r\n                YPLog(@\"无网络\")\r\n                break;\r\n            }\r\n            case YYReachabilityStatusWWAN:\r\n            {\r\n                switch (wwanStatus) {\r\n                    case YYReachabilityWWANStatusNone:\r\n                    {\r\n                        YPLog(@\"蜂窝网络\");\r\n                        break;\r\n                    }\r\n                    case YYReachabilityWWANStatus2G:\r\n                    {\r\n                        YPLog(@\"2G\");\r\n                        break;\r\n                    }\r\n                    case YYReachabilityWWANStatus3G:\r\n                    {\r\n                        YPLog(@\"3G\");\r\n                        break;\r\n                    }\r\n                    case YYReachabilityWWANStatus4G:\r\n                    {\r\n                        YPLog(@\"4G\");\r\n                        break;\r\n                    }\r\n                    default:\r\n                        break;\r\n                }\r\n                break;\r\n            }\r\n            case YYReachabilityStatusWiFi:\r\n            {\r\n                YPLog(@\"Wifi网络\");\r\n                break;\r\n            }\r\n            default:\r\n                break;\r\n        }\r\n        \r\n    }];\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/ibireme/YYKit/issues/comments/220827698","html_url":"https://github.com/ibireme/YYKit/issues/209#issuecomment-220827698","issue_url":"https://api.github.com/repos/ibireme/YYKit/issues/209","id":220827698,"user":{"login":"ibireme","id":839283,"avatar_url":"https://avatars.githubusercontent.com/u/839283?v=3","gravatar_id":"","url":"https://api.github.com/users/ibireme","html_url":"https://github.com/ibireme","followers_url":"https://api.github.com/users/ibireme/followers","following_url":"https://api.github.com/users/ibireme/following{/other_user}","gists_url":"https://api.github.com/users/ibireme/gists{/gist_id}","starred_url":"https://api.github.com/users/ibireme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibireme/subscriptions","organizations_url":"https://api.github.com/users/ibireme/orgs","repos_url":"https://api.github.com/users/ibireme/repos","events_url":"https://api.github.com/users/ibireme/events{/privacy}","received_events_url":"https://api.github.com/users/ibireme/received_events","type":"User","site_admin":false},"created_at":"2016-05-22T11:35:20Z","updated_at":"2016-05-22T11:35:20Z","body":"reachabilityWithHostname 应该传入 host name，例如 \"www.baidu.com\"。"}}
{"actor":{"display_login":"ibireme"}}