asihttprequest crashes my app

前端 未结 4 494
自闭症患者
自闭症患者 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条回答
  •  再見小時候
    2021-02-06 04:32

    Try cancelling and unsetting the delegate in -viewWillUnload rather than -viewDidUnload. I suspect the window of time in which it's actually unloading (between calling those two UIViewController methods) is the time period when you're crashable. The delegate has gone away, but you haven't told your ASIHTTPRequest object that yet.

提交回复
热议问题