NSURLConnection sendSynchronousRequest-是否可以实现而不会泄漏 [英] NSURLConnection sendSynchronousRequest - is it possible to implement without leak

查看:69
本文介绍了NSURLConnection sendSynchronousRequest-是否可以实现而不会泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以实现NSURLConnection而不泄漏?包括NYTimes和其他(包括我的)在内的许多应用程序都遭受了这一困扰.有人有可行的实现吗?

Is there a way to implement NSURLConnection without it leaking? A number of Apps including NYTimes and others (including mine) suffer from this. Anyone have a working implementation?

推荐答案

看来,最佳实践是异步使用NSURLConnection.

It appears that best practice is to use NSURLConnection asynchronously.

这篇关于NSURLConnection sendSynchronousRequest-是否可以实现而不会泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆