asihttprequest crashes my app

前端 未结 4 547
自闭症患者
自闭症患者 2021-02-06 04:05

I have a navigation based app. Press a button on main view, then I push a new view to the navigation controller. All pretty basic stuff.

When the new view is loaded, I d

4条回答
  •  萌比男神i
    2021-02-06 04:49

    Your application delegate can own an array of request queues. The array lives independent of the state of the navigation controller stack and associated views. Instead of tying requests to a view controller in the nav stack, and having to do UI tricks to block popping back to a parent view, you could add requests to an app delegate queue instance, or stop all requests and empty the queue, etc.

提交回复
热议问题