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

  • Home
  • SEARCH
  • 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 6809743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:07:20+00:00 2026-05-26T20:07:20+00:00

Our iOS app has a Web View that is rendering pages from file: URLs.

  • 0

Our iOS app has a Web View that is rendering pages from file: URLs. When the user touches an <A> element to switch pages, about 20% of the time, it gets stuck as follows:

  1. User taps <A> link
  2. We get WebView.shouldStartLoadWithRequest callback
  3. We get WebView.webViewDidStartLoad callback
  4. nothing happens after this

The screen still shows the original page with the link on it. We can break the logjam in two ways:

  1. Rotate the device
  2. Tap the screen

At that point, the page will immediately finish loading.

We used the recipe from here:

Javascript console.log() in an iOS UIWebView

to allow us some insight into the page load. We put the javascript-side stuff right in the first script file we load on the page, and it doesn’t print its message until after we do the rotate-or-tap workaround.

So it appears that it is getting stuck somewhere between starting to load the page, and starting to evaluate the stuff on the page.

We have tried a number of work-around, none of which helped:

  • Setting location.href instead of using the tag
  • Setting location.href from javascript timeout
  • In the didStartLoad callback, created a thread that called setNeedDisplay on the webView over and over

Any idea what we might be doing wrong?

  • 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-05-26T20:07:21+00:00Added an answer on May 26, 2026 at 8:07 pm

    You could use gdb within XCode to debug the problem. I think canidates for messages that could have break points are:

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

    I’d also add a break in whatever UIViewController is showing your UIWebView for:

    - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
    

    Then you could step through and hopefully catch what’s wrong with your UIWebView subclass.

    If you don’t want to add breakpoints you could just run your app in the XCode debugger and hit the “pause execution” button above the console window when your app becomes unresponsive while loading.

    GDB Pause Execution Button

    It’s hard to know what’s going on without any code to go off of but I bet Xcode can help you find the issue quickly.

    Good luck!

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

Sidebar

Related Questions

Our company created an iOS app that has an iPhone version and an iPad
I currently have an iOS app that allows people to submit content to our
I know that from iOS 4.0 onwards we can execute our code in background.
I'm working on an iOS Cocoa app that has a fallback - if the
Our ASP.NET 3.5 website running on IIS 6 has two teams that are adding
Can a custom FB web app be used inside the iOS / android FB
Our QA team wants to test our app on old versions of iOS. We
We've discovered our complex iPhone app (ObjC, C++, JavaScript/WebKit) is leaking file descriptors under
When testing our iOS app, my team and I need to disable SSL certificate
In our iOS app we have close to a hundred image files in resources

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.