Wait_fences: Failed to get the answer: 10004003 - what?

This odd mistake turned out.

heres the deal - in the method below, I got a warning, take U / N and PW, then try to run another method.

Method

-postTweet 

not activated

I just get this error in the console

  wait_fences: failed to receive reply: 10004003 

Which is really strange - since ive never seen him 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]; } } } 

Any help would be appreciated

thanks

Sam

ADDED:

If you need to see more code, let me know

+6
uitextfield uialertview
source share
4 answers

Here I also encountered the same problem in my project, and I managed to solve the problem now. You need to call the method using NSTimer.

So, here you trigger one warning inside another warning when one warning goes off and then a new warning appears. There is no problem. You can do it easily. Instead of defining an alertview inside the "- (void) alertView: (UIAlertView *) alertView clickedButtonAtIndex: (NSInteger) buttonIndex {if (alertView == completeAlert)" method, you can create one method, for example, "Show_AlertMessage", and call it using a timer similar to 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 problem. We will solve this problem, as I did for our part.

+6
source share

I believe the problem is because you are creating another warning before firing the first one. Since it is assumed that only one type of warning is present in someone, one second view of the second step comes at the first.

Before creating and showing the second, you must discard the first view.

+1
source share

The solution is here! I had the same error, now I got a solution, this may help you. Use this delegate from AlertView

 - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex{ 
0
source share

Your UITextField* does not reset its status as the first responder before the warning is rejected.

This will ruin the chain of defendants. Add [textField resignFirstResponder] or [textField2 resignFirstResponder] , as applicable in the UIAlertViewDelegate implementation ( alertView:clickedButtonAtIndex:

Also, plan your second UIAlertView to display after the first rejection (you can do this with ( performSelector:withObject:afterDelay:

-one
source share

All Articles