"may only be called from the main thread"
2015-10-13 17:14
603 查看
此bug发生是因为目前的进程中有更新UI的操作但是没有在主线程中进行所引起的,
所以简单的方法是使用gcd切换主线程进行UI更新
所以简单的方法是使用gcd切换主线程进行UI更新
//UI更新需要在主线程 dispatch_async(dispatch_get_main_queue(), ^ { [weakLoginAnimated removeFromSuperview]; });
相关文章推荐
- Error:Error: Invalid file name: must contain only lowercase letters and digits ([a-z0-9_.])
- lintcode 容易题:Trailing Zeros 尾部的零
- 使用MAVEN创建项目报错Failed to execute goal org.appche.maven.plugings:maven-archetype-plgin:2.4
- "plugin container for firefox已停止工作"的解决办法
- poj 1411 Calling Extraterrestrial Intelligence Again 筛素数
- How-to: 安装 SharePoint 后,配置失败: Failed to register SharePoint services
- activity_main cannot be resolved or is not a field
- assign copy retain
- CodeForces #325 D. Phillip and Trains
- strong,weak,copy,retain和assign的区别
- CF 486D vailid set 树形DP
- 【Codeforces Round #325 (Div. 2)】D. Phillip and Trains
- Activity四大组件之Service 方式一AIDl(BInderService方式)
- HDU 4819 Mosaic(二维线段树)
- Dailog开发新方法
- 解决 recv() failed (104: Connection reset by peer) while reading response header from upstream
- Codeforces 586D Phillip and Trains dfs —— Round #325 (Div. 2)
- wait_event_interruptible()与wake_up()的使用
- explaination
- Shiro-1.2.2内置的FilterChain