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 3310386
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:45:15+00:00 2026-05-17T21:45:15+00:00

Some Background I have an iPhone app with three UIWebViews, each used to show

  • 0

Some Background

I have an iPhone app with three UIWebViews, each used to show a different type of page. (The content is specifically designed for this purpose, they’re not real web pages.) There are links associated with each specific web view. For example, a link tapped in WV1 might need to load in WV2 because it’s a WV2-style link. (The webviews are in a paged UIScrollView, which I use to scroll to the currently loading webview. I can tell which URL loads where based on it’s path.)

It makes sense to me to have a single UIWebView delegate that responds to all URLRequests (via webView:shouldStartLoadWithRequest:navigationType) and somehow decides which should load where.

The HTML I want to load in the webview isn’t fetched directly from a page. I do something like [NSDictionary dictionaryWithContentsOfURL:] to get the object, part of which is the actual HTML. (Additionally, this might come from the network or a local cache.)

The Question

I need to cancel a request in one UIWebView and then load some arbitrary data into another. How should I be doing the subsequent load, so that it bypasses my interception?

Should I stop all intercept all NSURLRequests via the webview delegate method, then send a new NSURLRequest, that will actually get loaded, to the correct webview? I was thinking I’d subclass NSURLRequest so I’d be able to tell original requests separate from my doctored requests. But again, I don’t want to make straight NSURLRequests, I want to fetch an NSDictionary and use one of it’s values as the HTML.

I saw this article on filtering what loads in a UIWebView, but I don’t think that’s exactly what I want.

I’m trying to work my way through the URL Loading System Overview, but there’s a lot there.

  • 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-17T21:45:15+00:00Added an answer on May 17, 2026 at 9:45 pm

    Ended up using custom URL schemes to identify the requests that I wanted to load vs. the ones I wanted handled.

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

Sidebar

Related Questions

First some background: The company I work for have decided to create an iPhone
In my iPhone app I have a background task that starts running when the
I have some .swf files I want to use in an iphone app for
Some background: In Germany (at least) invoice numbers have to follow certain rules: The
We have an application that downloads some files in the background. Our application pops
I have an iPhone App published for a while, developed under the SDK3, and
I'm using an SQLite database in my iPhone app. At startup, there are some
Sorry but I found no clear answer on that. I have an iphone app
I have an iPhone app that is using sqlite 3.6 (not with FMDB) to
I have an iPhone app that does image manipulation via blending two UIImage objects

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.