wait_fences:无法收到回复:10004003-什么? [英] wait_fences: failed to receive reply: 10004003 - what?

查看:69
本文介绍了wait_fences:无法收到回复:10004003-什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

收到这个奇怪的错误.

Been getting this odd error.

这是一笔交易-在以下方法中,我有一个警报视图,采用U/N和PW,然后尝试启动另一种方法.

heres the deal - in the below method i have an alert view come up, take a U/N and PW, then atempt to start another method.

方法

   -postTweet

没有被激活

我只是在控制台中收到此错误

I just get this error in console

 wait_fences: failed to receive reply: 10004003

这真的很奇怪-我以前从未见过

Which is really odd - as ive never seen it before

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
    if (alertView == completeAlert ) {
        if (buttonIndex ==1) {
            passPromtAlert = [[UIAlertView alloc] initWithTitle:@"Enter Name" message:@"Please enter your Username and password - they will be saved\n" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Tweet", nil];
            [passPromtAlert addTextFieldWithValue:@"" label:@"Enter username"];
            [passPromtAlert addTextFieldWithValue:@"" label:@"Enter password"];

            textField = [passPromtAlert textFieldAtIndex:0];
            textField2 = [passPromtAlert textFieldAtIndex:1];
            textField.clearButtonMode = UITextFieldViewModeWhileEditing;
            textField.keyboardType = UIKeyboardTypeAlphabet;
            textField.keyboardAppearance = UIKeyboardAppearanceAlert;
            textField.autocapitalizationType  = UITextAutocapitalizationTypeWords;
            textField.autocorrectionType = UITextAutocapitalizationTypeNone;
            textField.textAlignment = UITextAlignmentCenter;

            textField2.secureTextEntry = YES;

            textField2.clearButtonMode = UITextFieldViewModeWhileEditing;
            textField2.keyboardType = UIKeyboardTypeAlphabet;
            textField2.keyboardAppearance = UIKeyboardAppearanceAlert;
            textField2.autocapitalizationType  = UITextAutocapitalizationTypeWords;
            textField2.autocorrectionType = UITextAutocapitalizationTypeNone;
            textField2.textAlignment = UITextAlignmentCenter;

            [passPromtAlert show];
        }
    }
    if (alertView == passPromtAlert ) {
        if (buttonIndex == 1) {
        NSLog(@"here");         
        [self postTweet];
        }
    }
}

任何帮助将不胜感激

谢谢

山姆

已添加:

如果您需要查看更多代码,请告诉我

If you need to see more code, then let me know

推荐答案

在这里,我在项目中也遇到了同样的问题,现在我设法解决了这个问题.您需要使用NSTimer调用该方法.

Here I was also facing the same issue in my project and I managed to solve the issue now. You need to call the method using NSTimer.

因此,在这里,您要在另一个警报中调用一个警报,这意味着当一个警报消失时,您要在此呼叫的新警报就会消失.没问题.您可以轻松做到.而不是在方法-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { if(alertView == completeAlert)",则可以创建一个方法,例如"Show_AlertMessage",并使用这样的计时器调用它.

So, Here you are calling one alert inside another alert means when one alert dismiss then the new alert you are calling there. There is no problem in that. You can do it easily. Instead of defining alertview inside the method "- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ if (alertView == completeAlert )", You can create one method e.g. "Show_AlertMessage" and call it using timer like this.

    [NSTimer scheduledTimerWithTimeInterval:0.001 target:self selector:@selector(Show_AlertMessage) userInfo:nil repeats:NO];

让我知道您是否可以解决此问题.我们将像为我的身边一样解决这个问题.

Let me know if you can get rid of this issue. We will solve this issue as I did for my side.

这篇关于wait_fences:无法收到回复:10004003-什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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