ASIFormDataRequest [request startSynchronous] 方法 crash问题的解决方式

[[self readStream] scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:[self runLoopMode]];

出错位置定义到这行代码

http://stackoverflow.com/questions/8906758/debugger-stopping-on-asihttprequests-schedulereadstream-with-no-error

stackoverflow上面的解释

在自己的代码中,修改如下:

修改之前

request.url = [NSURL URLWithString:urlString]

修改之后

[request initWithURL:[NSURL URLWithString:urlString]]

url的初始化问题导致内存泄露。

原文地址:https://www.cnblogs.com/easonoutlook/p/3088303.html