应用在4.0上崩溃,但在5.0上没有崩溃 [英] App crash on 4.0 but not on 5.0

查看:73
本文介绍了应用在4.0上崩溃,但在5.0上没有崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图修复一个奇怪的错误.使用IOS 4的人甚至无法在更新后启动我的应用程序,然后使其崩溃. IOS 5设备效果很好.

I trying to fix a strange bugg. People with IOS 4 can't even start my app after the update before it crashes. IOS 5 devices works great.

我在上一次更新中添加的内容是块.但是块应该可以在ios4上使用,对吗?

The things that comes to mind that I added in the last update is blocks. But block should work on ios4, right?

IOS 4.3模拟器工作得很好,但是下面的dispatch_async代码在4.2.1 3GS上崩溃了.

IOS 4.3 simulator works great, but a 4.2.1 3GS crashes on the dispatch_async code below.

我知道这里没有太多信息,但是任何建议都会被采纳.

I know there isn't much info here, but any suggestion would be appriciated.

预先感谢

1.         
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND,0), ^(void) 
                       {
                           dispatch_async(dispatch_get_main_queue(), ^(void) 
                                          {


2. 
    [UIView animateWithDuration:0.25f animations:^
     {
         myView.alpha = 0; 
     }]; 

推荐答案

请参阅我对此问题的回答.问题是DISPATCH_QUEUE_PRIORITY_BACKGROUND.

这篇关于应用在4.0上崩溃,但在5.0上没有崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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