Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Are you looking to clear some space on your phone for the latest iOS 8 update? Did you switch to Spotify so you no longer need to keep music native on your phone? Run out of space for taking photos while in the middle of vacation? Sometimes the quic…
Learn new improvements released by Google for Google Calendar. Noted in this article are simple tips and tricks that can make your everyday use of Google Calendar better.
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now