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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:36:51+00:00 2026-05-26T05:36:51+00:00

I am implementing a ‘online image search’ feature for my app. The flow that

  • 0

I am implementing a ‘online image search’ feature for my app. The flow that I require is as follows:

1) Retrieve a image url that the user wants to use

2) Save the image (via the URL) to the phone’s photo album

3) Retrieve the saved image via the image picker controller and open up the move and scale screen

4) Use the image retrieved from the album.

Can anyone advise how I can do the steps above after obtaining the image URL?

  • 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-26T05:36:52+00:00Added an answer on May 26, 2026 at 5:36 am

    You can save image in photo album with this code

        UIImageWriteToSavedPhotosAlbum(yourImage, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
    
    
    
    - (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
    {
        if (error != NULL)
        {
            // handle error
        }
        else 
        {
            // handle ok status
        }
    }
    

    Now for executing code in another thread I would write code like this

    // load data in new thread
    [NSThread detachNewThreadSelector:@selector(downloadImage) toTarget:self withObject:nil];
    

    This method you can have anywhere in your code, button or any other UIKit control. Then you will need methods that are going to do the hard work.

    - (void)downloadImage
    {
    
        // network animation on
        [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
    
        // create autorelease pool
        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 
    
       // save image from the web
        UIImageWriteToSavedPhotosAlbum([UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@"your_image_address.com"]]], self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
    
        [self performSelectorOnMainThread:@selector(imageDownloaded) withObject:nil waitUntilDone:NO ];  
    
        [pool drain];       
    
    }
    
    - (void)imageDownloaded
    {
    
        // network animation off
        [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
    
        // do whatever you need to do after 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While implementing my own IFilter I found that most likely some consumers will require
Implementing centering feature for image downloads - Pop Up Window I posted here asking
Implementing an app where the user can log in I have the following situation:
Implementing a custom membership provider, there are certain properties such as MinRequiredPasswordLength that only
Before implementing j_security_check using MySQL realm authentication in my web app. I had the
When implementing the Strategy Pattern, where does one put the code that determines which
When implementing a Facebook Canvas app using an iframe the iframe does a post
Im Implementing a video broadcasting website. For that I planned to use silverlight player
Implementing Ajax requests in my rails 3 app has been one of the most
Implementing a Thread by providing a new class that extends Thread and overriding its

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.