开发者

How to download images in iphoneAPP from facebook and Picassa

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜