Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Are you having trouble connecting or getting your iPhone / Samsung device(s) to sync with Microsoft Exchange Server?   What have you tried?   What haven't you tried?
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

749 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