Solved

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

Posted on 2010-11-14
2
2,922 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
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

The release of the iPhone 6 and iPhone 6 Plus was a complete game changer for Apple. Steve Jobs had even showed his distaste for larger phones, calling them “Hummers”. But to compete with larger smartphones, Apple finally introduced the iPhone 6 wit…
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.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

777 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