Solved

Warning, wait_fences: failed to receive reply: 10004003 while using an UIAlertView

Posted on 2010-11-14
2
2,931 Views
Last Modified: 2013-11-25
I'm getting the following warning..

wait_fences: failed to receive reply: 10004003

I've calling the alert view from applicationWillEnterForeground, however the warning occurs after didDissMissWithButtonIndex.

- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
{
UITextField* theTextField = ((UITextField*)[alertView viewWithTag: 1]);

if(buttonIndex == 1)
{
    NSLog(@"Password=%@", theTextField.text);
}
[theTextField resignFirstResponder];

//[theTextField removeFromSuperview];  
//[theTextField release];
}

Open in new window


I've been told if I need to swap clickedButtonAtIndex in for the delegate method, this could solve the problem, but I've no idea how to do this.
0
Comment
Question by:mindwarpltd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
xeonol earned 500 total points
ID: 34134929
Put the code in override function of willDismissWithButtonIndex instead of didDismissWithButtonIndex,  because in the latter function, the view is already not on the screen (it "did"), the resignFirstResponder then came accross a wrong view state.
0
 

Author Closing Comment

by:mindwarpltd
ID: 34134968
Excellent
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Email is way too noisy, prone to hiding the important stuff, and really becoming unreliable for critical/timely communications. There are better ways to communicate.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question