wait_fences:收不到回复:10004003 - 什么?

Sam*_*man 6 uitextfield uialertview iphone-sdk-3.0

得到这个奇怪的错误.

继承人的交易 - 在下面的方法我有一个警报视图上来,需要U/N和PW,然后atempt启动另一个方法.

方法

   -postTweet
Run Code Online (Sandbox Code Playgroud)

没有激活

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

 wait_fences: failed to receive reply: 10004003
Run Code Online (Sandbox Code Playgroud)

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

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

任何帮助,将不胜感激

谢谢

山姆

添加:

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

App*_*ect 6

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

所以,在这里你在另一个警报中调用一个警报意味着当一个警报解除然后你在那里呼叫的新警报时.这没有问题.你可以轻松地做到.不是在方法内定义alertview" - (void)alertView:(UIAlertView*)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {if(alertView == completeAlert)",你可以创建一个方法,例如"Show_AlertMessage"并使用定时器调用它这个.

    [NSTimer scheduledTimerWithTimeInterval:0.001 target:self selector:@selector(Show_AlertMessage) userInfo:nil repeats:NO];
Run Code Online (Sandbox Code Playgroud)

如果你能解决这个问题,请告诉我.我们将像我一样为这个问题解决这个问题.