当前位置: 动力学知识库 > 问答 > 编程问答 >

iphone - How to download images in iphoneAPP from facebook and Picassa

问题描述:

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];
分享给朋友:
您可能感兴趣的文章:
随机阅读: