Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.60 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Problem in NSURLConnection didFailWithError: method in iPhone SDK
  2. -(void)connection:(NSURLConnection *)connection  didFailWithError:(NSError *)error
  3.    {
  4. UIAlertView* statusAlert3 = [[UIAlertView alloc] initWithTitle:@"Alert"
  5.                                                                                            message:@"Error in communicating to server.  We regret the inconvenience. Please   try again."delegate:self
  6.                                                cancelButtonTitle: @"Ok"
  7.                                              otherButtonTitles:nil];
  8. [statusAlert3 show];
  9. [statusAlert3 release];