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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:44:24+00:00 2026-06-16T02:44:24+00:00

I have a web view displaying many images from any URL. When I click

  • 0

I have a web view displaying many images from any URL. When I click or longpress on particular image I need to download that image data .
How is it possible?

  • 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-16T02:44:26+00:00Added an answer on June 16, 2026 at 2:44 am

    A simple solution would be to keep listening to the UIWebview delegate, shouldStartLoadWithRequest and whenever the URL ends with a .jpg or .png, you could stop the redirection and download the image manually.

    NSData *data = [NSData dataWithContentsOfURL:url];
    UIImage *img = [UIImage imageWithData:data];
    

    A more complex approach would be to use javascript and detect the point(x,y) of the touch on the UIWebview and then find corresponding element tag. If the element is an image, you then do a image download using the above method. But this is complicated and i’m not entirely sure if this can be achieve. If the first approach doesn’t help you then this is worth a shot, if you ask me.

    EDIT-

    You should put a gesture recogniser UILongPressGestureRecognizer and add a listener. So you could then call your java script function from there instead of doing it from the touches delegate method.

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

Sidebar

Related Questions

I have a list view displaying a list of images from the web. The
Okay so I have a web view that holds the chat bar div from
I am using a webview and on that web view i have a image.
I'm displaying a view with multiple full-sized (768x1024) images on iPad web application. Images
I have a data view web part on a page which is displaying a
I have a web-view running JavaScript application, and sometimes it freezes/hangs when the main
Hi All, I have a web-view in my application which displays some text with
I have put a web view inside a uitableviewcell Problem : didSelectRowAtIndexPath is not
So I have a view containing a web view with HTML content. This is
I have an android app it displays web view.I want know the app idle

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.