Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7848551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:14:43+00:00 2026-06-02T18:14:43+00:00

I have an iPad application that makes use of a UIWebView to display a

  • 0

I have an iPad application that makes use of a UIWebView to display a few URLs in the application itself. I am also using SVProgressHUD control to display a few user alerts on screen depending on the state.

My issue is that I want to elegantly handle the view when an error is displayed. When the UIWebView error delegate method is called I am displaying an instance of SVProgressHUD to the user to inform them of an error using the following:

-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
{

    [SVProgressHUD dismissWithError:@"An Error Has Occurred\nCheck Network Connection." afterDelay:2.0];
{

In addition to this, I wish to do something else. Either pop the view off the stack and take the user back to the previous page or fade in a UIImage which shows a custom created 404 page. I haven’t really decided yet. However, my issue is how do I detect that the instance of SVProgressHUD has disappeared from view so that I can do my next step without them overlapping?

Or create some kind of timer so that it waits a few seconds before displaying the UIImage or a Label on the display?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T18:14:44+00:00Added an answer on June 2, 2026 at 6:14 pm

    I would suggest to subclass (or, if you prefer, directly modify SVProgressHUD source) so that when the dismiss method is executed a notification of a given type (say, SUVHUDDismissedNotification) is sent to the notification center; if your UIWebView delegate registers for such notifications, you will have the trick done.

    That’s really 2 lines of code…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iOS app that makes phone calls using the Telephone application by
I have an iPad application that pulls in all of its data from an
I have a phonegap application targeting iPad that needs to embed a video on
I'm making an application for the iPad. I have a view controll that has
I have an iPad application and in one of my views i use UIScrollView
We have an application that support iAds. Apparently iOs 4.2 for iPad will support
I am using jQuery Mobile in an application that runs inside a UIWebView .
I have an iPad application with multi-threading capabilities using GCD. When i need to
I have an iPhone Windows-based Monotouch application that appears to use more memory to
I am currently creating an application (iPhone/iPad/Android) that uses a map to display houses

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.