dustturtle / RealReachability

We need to observe the REAL reachability of network. That's what RealReachability do.
MIT License
3.09k stars 471 forks source link

在WiFi情况下,网络波动,从网络不可达到有网络状态回调很慢 #24

Closed 983563622 closed 8 years ago

983563622 commented 8 years ago

网络波动(并非切换网络方式),出现网络不可达,但是这是这一点不可达,未来的非常快的一个时间点恢复网络了,触发通知回调很慢(对于这一点的验证:我在网络不可达以后立马通过提供的block获取但网络状态是可达的) 代码如下:

import "RRController.h"

import "RealReachability.h"

@interface RRController ()

@property (weak, nonatomic) IBOutlet UILabel statusLabel; /< 网络状态视图 /

@end

@implementation RRController

pragma mark - life cycle

@end image

983563622 commented 8 years ago

本来我为演示效果录的是gif动画,不知为何显示成静态图片了...如果需要查看,QQ:983563622,谢谢!

dustturtle commented 8 years ago

applicationDidBecomeActive 里不需要手动调用reachabilityWithBlock,框架里已经做了处理。我加你qq了,细聊哈