'wait_fences:在加载UIAlertView(iOS)时未能收到回复:10004003' [英] 'wait_fences: failed to receive reply: 10004003' on loading UIAlertView (iOS)

查看:62
本文介绍了'wait_fences:在加载UIAlertView(iOS)时未能收到回复:10004003'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我调用UIAlertView时,我收到'wait_fences:未能收到回复:10004003'。应用程序首次打开时会调用它。它不会崩溃应用程序或似乎完全影响它的功能,但我想完全清理我的应用程序。它是一个标签栏应用程序,我已经在视图控制器的viewDidLoad部分输入了代码,该部分首次在应用程序中加载:

I'm getting the 'wait_fences: failed to receive reply: 10004003' when I call a UIAlertView. It's called when the app first opens. It doesn't crash the app or seem to effect the functionality of it at all but I want to clean up my app completely. It's a tab bar app and I've entered the code in the viewDidLoad section of the View Controller that's first loading in the app:

- (void)viewDidLoad
{
    [super viewDidLoad];
    UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Welcome!" message:@"Thanks for downloading our new app! \n \n Take a look around and if you have any questions, don't hesitate to contact us." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
    [alert show];
    [alert release];
}

我在网站上看到了此错误的其他答案,但它们似乎已成交使用UITextFields,我不确定它们是如何完全适用于我的情况的。如果我错过了一些简单的事情,我会道歉,但我正在学习实践并且无法想象这一点。谢谢!

I have seen other answers on the site to this error but they seem to deal with UITextFields and I'm not sure how they apply to my situation exactly. I apologize if I'm missing something simple, but I'm learning hands-on and can't seem to figure this one out. Thanks!

推荐答案

你应该在中显示它 - (void)viewDidAppear 方法。当刚刚加载视图时,它不在屏幕上。

You should show it in -(void)viewDidAppear method. When view just loaded it is not on screen.

这篇关于'wait_fences:在加载UIAlertView(iOS)时未能收到回复:10004003'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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