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:
- Create a NSUrlConnection and implement the delegate methods
- Pass the url in your request and you will get the data in -
(void)connectionDidFinishLoading:(NSURLConnection *)connection
- You can then create a UIImage from this data using
UIImage *image = [[UIImage alloc] initWithData:activeDownloadData
];
精彩评论