今天看了个关于多线程的demoNSThread *thread = [[NSThread alloc]initWithTarget:self selector:@selector(downloadImage:) object:kURL];
[thread start];但是代码中没有执行[thread release]在NSThread手册中找到
For nongarbage-collected applications, the method selector is responsible for setting up an autorelease
pool for the newly detached thread and freeing that pool before it exits. 难道在downloadImage中加入autorelease pool就可以了?
[thread start];但是代码中没有执行[thread release]在NSThread手册中找到
For nongarbage-collected applications, the method selector is responsible for setting up an autorelease
pool for the newly detached thread and freeing that pool before it exits. 难道在downloadImage中加入autorelease pool就可以了?
解决方案 »
- Xcode连接SVN提交或者更新代码后~内存狂飙,上升到满~
- OC计算器
- 手机端开发后退键返回问题 求大神
- ASIHttprequest 在自定义类中不执行回调函数
- [求助]iphone4上视频流播放
- iOS masonry自动布局怎么导入呢?导入masonry文件夹够不够呢?为什么我导入时报了很多个错呢?
- 请问故事版的简单问题,小弟刚刚接触故事版。大侠有空来看看!谢谢
- iOS开发中两层view上的button不响应点击事件怎么解决
- 本人小白,运行后ios模拟器弹出这个界面是怎么回事啊
- iOS友盟分享到qq、QQ空间总是提示打开qq失败,打印出来的信息是send to qq result is 2 求大神帮忙怎么解决!!
- 很弱的问题
- 关于Document下文件操作
看看项目是不是ARC的。