Aparece el error raro.wait_fences: no se pudo recibir respuesta: 10004003 - ¿qué?
heres the deal - en el siguiente método tengo una vista de alerta subir, tomar una U/N y PW, luego intentaré iniciar otro método.
El método
-postTweet
no consigue activar
apenas consigo este error en la consola
wait_fences: failed to receive reply: 10004003
que es realmente extraño - como nunca he visto antes
- (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];
}
}
}
Cualquier ayuda se agradece
Gracias
Sam
añadido:
Si necesita ver más código, a continuación, que me haga saber
¿Tal vez vea esta pregunta? http: // stackoverflow.com/questions/1371346/wait-fences-failed-to-receive-reply-10004003 –
Resolví el mismo problema en mi proyecto. Espero que también puedas resolverlo usando la respuesta que publiqué a continuación. – AppAspect
Entonces, puede resolver ese problema. Eso es realmente bueno. Avíseme si quiere más ayuda en cualquier momento. – AppAspect