我正在使用NSXMLParser从feed获取新的RSS故事并在UITableView中显示它们.但是现在我想只拍摄图像,并将它们显示在UIScrollView/UIImageView中(并排显示3张图像).我完全迷失了.我使用以下代码从URL获取1个图像.
NSURL *theUrl1=[NSURL URLWithString:@"http://farm3.static.flickr.com/2586/4072164719_0fa5695f59.jpg"];
JImage *photoImage1=[[JImage alloc] init];
[photoImage1 setContentMode:UIViewContentModeScaleAspectFill];
[photoImage1 setFrame:CGRectMake(0, 0, 320, 170)];
[photoImage1 initWithImageAtURL:theUrl1];
[imageView1 addSubview:photoImage1];
[photoImage1 release];
Run Code Online (Sandbox Code Playgroud)
这是我已经完成的所有工作,对于一个图像,我必须指定确切的URL.你会建议我做些什么呢?