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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:04:18+00:00 2026-05-23T17:04:18+00:00

I am working on a image-text mixture page on iOS. I know it is

  • 0

I am working on a image-text mixture page on iOS. I know it is possible for me to use UIWebView to achieve the goal. But the problem is, user may need to read the page offline.
For the text part, I can save the html to the disk and load it in the offline mode.
But how about images? Is it possible to cache the images to the disk and the UIWebView can still be able to display them?

Thank you!

  • 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-23T17:04:18+00:00Added an answer on May 23, 2026 at 5:04 pm

    The ASIHTTPRequest project has a class called ASIWebPageRequest which is designed to do exactly what you want. If you’re okay with adding an additional dependency to your project then I think it’s a good solution for you: ASIWebPageRequest.

    On the page I liked above there are some good examples of how to use it but I’ll include one of them here for completeness:

    - (IBAction)loadURL:(NSURL *)url
    {
       // Assume request is a property of our controller
       // First, we'll cancel any in-progress page load
       [[self request] setDelegate:nil];
       [[self request] cancel];
    
       [self setRequest:[ASIWebPageRequest requestWithURL:url]];
       [[self request] setDelegate:self];
       [[self request] setDidFailSelector:@selector(webPageFetchFailed:)];
       [[self request] setDidFinishSelector:@selector(webPageFetchSucceeded:)];
    
       // Tell the request to embed external resources directly in the page
       [[self request] setUrlReplacementMode:ASIReplaceExternalResourcesWithData];
    
       // It is strongly recommended you use a download cache with ASIWebPageRequest
       // When using a cache, external resources are automatically stored in the cache
       // and can be pulled from the cache on subsequent page loads
       [[self request] setDownloadCache:[ASIDownloadCache sharedCache]];
    
       // Ask the download cache for a place to store the cached data
       // This is the most efficient way for an ASIWebPageRequest to store a web page
       [[self request] setDownloadDestinationPath:
          [[ASIDownloadCache sharedCache] pathToStoreCachedResponseDataForRequest:[self request]]];
    
       [[self request] startAsynchronous];
    }
    
    - (void)webPageFetchFailed:(ASIHTTPRequest *)theRequest
    {
       // Obviously you should handle the error properly...
       NSLog(@"%@",[theRequest error]);
    }
    
    - (void)webPageFetchSucceeded:(ASIHTTPRequest *)theRequest
    {
       NSString *response = [NSString stringWithContentsOfFile:
          [theRequest downloadDestinationPath] encoding:[theRequest responseEncoding] error:nil];
       // Note we're setting the baseURL to the url of the page we downloaded. This is important!
       [webView loadHTMLString:response baseURL:[request url]];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I 'm trying to add text on a specific image. Its working perfectly but
Here's the basic layout of a page I'm working on: alt text http://www.mfrl.org/images/pagelayout.png What
I had a problem working with the image classes in java. I am creating
I'm working in image processing project, and I have this problem: If I made
Regard this image: alt text http://img25.imageshack.us/img25/9743/timetablepo.png The TimeTableViewModel of this user interface is this:
I am currently working on a project and my goal is to locate text
Using Javascript I would like to show a working/loading image once a user hits
I know how to persist photo\video annotations data\text. The problem is what is the
I'm working on a image viewer that has a draggable scrollbar. When the user
Newb question. I'm trying to use z-index, but it doesn't seem to be working

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.