AFNetworking 2.0 queue request when device is offline with setReachabilityStatusChangeBlock does nothing

前端 未结 2 1712
走了就别回头了
走了就别回头了 2020-12-08 06:14

I\'ve been trying to come up with a solution to queue HTTP requests using AFNetworking when the device is offline, so when it goes back online the requests gets done. As far

2条回答
  •  长情又很酷
    2020-12-08 06:30

    You do not store manager. So it is like any local variable is deleted when leaving viewDidLoad. Store it to property or instance variable.

提交回复
热议问题