http://blog.csdn.net/musou_ldns/article/details/7242359
项目中一个UIViewController内使用异步线程,异步线程未执行完时pop退出此画面,程序crash。控制台打出错误如下:
Tried to obtain the web lock from a thread other than the main thread...
经调查,发现是由于UIViewController的release方法没有在主线程中调用造成的crash,修改方法如下:
- (oneway void) release {
if (![NSThread isMainThread]) {
[self performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:NO];
} else {
[super release];
}
}
添加以上代码到UIViewController中,当不在主线程中执行release时,强行回到主线程中执行。
相关推荐
"Unit 6 An old man tried to move the mountains.教学设计" 本教学设计旨在帮助八年级学生学习英语,具体来说是学习Unit 6 An old man tried to move the mountains.该单元的中心话题是“传奇式的童话故事”,语言...
八年级英语下册 Unit 6 An old man tried to move the mountains(Section A 1a-2d)导学案(无答案)(新版)人教新目标版
根据提供的信息,“I have tried to create a circular command button like thing”描述了用户试图用基本图形形状来构建一个圆形命令按钮。在这个过程中,可能会涉及到几个关键的知识点: 1. **自定义控件**:在VB...
(3) How far is it from the station to the supermarket? 3. **一般过去时的被动语态**: - "In 1972, it was discovered that they are endangered." 这句话展示了过去被发现的事实,使用了一般过去时的被动...
【标题】和【描述】提及的是八年级英语下册Unit 6的一课,主题是《一位老人尝试移山》,这是一则来源于中国古代寓言故事的英语教学内容,旨在帮助学生学习与该故事相关的英语词汇、语法和表达。 【知识点】 I. ...
本文主要涉及的是初中英语学习的内容,特别是山东省郯城县新村乡中学八年级英语下册Unit 6 "An old man tried to move the mountains" 的第四课时学案。该学案聚焦的重点词汇、短语和句型对学生的英语学习至关重要。...
本课是八年级英语下册 Unit 6 "An old man tried to move the mountains" (Section B 2a-2e),主要聚焦于通过一个关于老人移山的故事来学习和运用语言知识。以下是课程中的核心知识点: 1. **词汇与短语**: - ...
1. 故事开头表达:标题和描述中的"An old man tried to move the mountains"是一个经典的中文故事《愚公移山》的英文版本,它常用来引导学生学习如何用英语讲述故事,尤其是用"Once upon a time…"这样的传统故事...
总的来说,这份八年级英语下册Unit 6 An old man tried to move the mountains Section B的同步优化训练涵盖了词汇积累、语法应用、句子翻译、句型转换和单项选择等多种语言技能的训练,旨在帮助学生全面提高英语...
针对这一趋势,【金榜学案】2014版八年级英语下册 Unit 6“An old man tried to move the mountains”单元综合检测应运而生。这不仅是一份检验学生学习效果的试卷,更是一次对“愚公移山”这一中国成语故事的现代...
Understanding the limitations of web-based technologies and how to overcome them is a necessary part of implementing designs. Often, a little knowledge ahead of time can help to shape a design and ...
和【描述】提及的是八年级英语下册Unit 6的一套同步检测题,内容涉及听、说、读、写等语言技能的考察,主题是“An old man tried to move the mountains”,通常这个故事取自中国古代寓言《愚公移山》,讲述了一个...
Ajax melds together existing technologies to help developers give web users a more advanced browsing experience. By utilizing XHTML, CSS, JavaScript, and XML, all tried-and-true technologies, along ...
Unity 5 From Zero to Proficiency (Intermediate): A step-by-step guide to coding your first game in C# with Unity. Why this book can help you to get started with Game Development Creating your own ...