V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
abellee
V2EX  ›  iOS

关于断网的情况下请求导致崩溃问题 nscfurlsessionconnection withdelegateandpendingcompletionasync

  •  
  •   abellee · Mar 30, 2017 · 2514 views
    This topic created in 3320 days ago, the information mentioned may be changed or developed.

    情况是这样的,公司断网,在虚拟机下跑项目 项目本身作了离线处理 但是发生了崩溃 报的错是 NSCFURLSessionConnection 的 withDelegateAndPendingCompletionAsync 这个方法 exc bad access 了 我尝试把一些请求,在发生 error 时 cancel 掉,貌似不起作用 但又不想在没网时不发请求,因为在请求层作了处理,首先返回本地数据 但同时会发起网络请求, 在网络请求的时候,发生错误时也处理了 不清楚如何避免这种情况下的崩溃 再就是上面的这个问题是什么情况 先谢谢各位了

    1 replies    2017-03-30 23:23:32 +08:00
    FurN1
        1
    FurN1  
       Mar 30, 2017
    我的眼睛!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2505 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 03:09 · PVG 11:09 · LAX 20:09 · JFK 23:09
    ♥ Do have faith in what you're doing.