问题描述:

Any one tell me about image downloading functionality in iphone from facebook and picassa.I am making application in it I want to make functionality for download selected images from picassa and facebook via my application.So what i have to do?

thank you

网友答案:

Check out NSURLConnection. I would better suggest use the ASIHttpRequest library for downloading the images from a url.

You will have to do the following:

  1. Create a NSUrlConnection and implement the delegate methods
  2. Pass the url in your request and you will get the data in -(void)connectionDidFinishLoading:(NSURLConnection *)connection
  3. You can then create a UIImage from this data using UIImage *image = [[UIImage alloc] initWithData:activeDownloadData];
相关阅读:
Top