V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tsinghan
V2EX  ›  iOS

ios reachability 能不能判断,网络恢复状态?

  •  
  •   tsinghan · 2015-05-04 17:16:41 +08:00 · 2353 次点击
    这是一个创建于 3251 天前的主题,其中的信息可能已经有所发展或是发生改变。

    ios reachability 能不能判断,网络恢复状态, 从断网到恢复网络?

    4 条回复    2015-05-05 14:58:58 +08:00
    newtonisaac
        1
    newtonisaac  
       2015-05-04 23:37:34 +08:00 via iPad
    能,只要在前台
    tsinghan
        2
    tsinghan  
    OP
       2015-05-05 10:57:01 +08:00
    @newtonisaac 什么意思,提示一下关键词,我用的afnetworking
    newtonisaac
        3
    newtonisaac  
       2015-05-05 11:19:34 +08:00
    @tsinghan 只要你的app还在运行,也就是还在屏幕上展现着,就可以得到网络恢复的notification
    tsinghan
        4
    tsinghan  
    OP
       2015-05-05 14:58:58 +08:00
    @newtonisaac ok 谢谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1197 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:15 · PVG 07:15 · LAX 16:15 · JFK 19:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.