开发者

How to download images in iphoneAPP from facebook and Picassa

开发者 https://www.devze.com 2023-03-02 23:34 出处:网络
Any o开发者_如何学运维ne 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

Any o开发者_如何学运维ne 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];
0

精彩评论

暂无评论...
验证码 换一张
取 消