Đã nhận được lỗi lạ này.wait_fences: không nhận được trả lời: 10004003 - cái gì?
heres thỏa thuận - trong phương thức dưới đây tôi có chế độ xem cảnh báo xuất hiện, lấy một U/N và PW, sau đó khinh để bắt đầu phương thức khác.
Phương pháp
-postTweet
không được kích hoạt
tôi chỉ nhận được lỗi này trong giao diện điều khiển
wait_fences: failed to receive reply: 10004003
Đó là thực sự kỳ lạ - như ive không bao giờ nhìn thấy nó trước khi
- (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];
}
}
}
Bất kỳ trợ giúp sẽ được đánh giá
Cảm ơn
Sam
thêm:
Nếu bạn cần để xem mã nhiều hơn, sau đó cho tôi biết
Có thể thấy câu hỏi này? http: // stackoverflow.com/questions/1371346/wait-fences-failed-to-receive-reply-10004003 –
Tôi đã giải quyết vấn đề tương tự trong dự án của mình. hy vọng bạn cũng có thể giải quyết tương tự bằng cách sử dụng câu trả lời tôi đã đăng bên dưới. – AppAspect
Vì vậy, bạn có thể giải quyết vấn đề đó. Điều đó thực sự tốt. Hãy cho tôi biết nếu bạn muốn được trợ giúp thêm bất kỳ lúc nào. – AppAspect