'wait_fences:在加载UIAlertView(iOS)时未能收到回复:10004003'

Mil*_*dia 5 uialertview ios

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

- (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];
}
Run Code Online (Sandbox Code Playgroud)

我在网站上看到了这个错误的其他答案,但他们似乎处理UITextFields,我不确定它们如何适用于我的情况.如果我错过了一些简单的事情,我会道歉,但我正在学习动手,似乎无法想出这一点.谢谢!

Rom*_*nko 11

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