I can retrieve the images from the XML file of a web server and list the images as scroll view. Now i want to click on a image that should take me to another window where the window should again show some images as a collection view. Can anyone suggest me how to do this.
I listed my TableView Controller and reference image of how i need from the existing.
MyTableViewController.m
- (void)viewDidLoad{
[super viewDidLoad];
xmlParser = [[egsXMLParser alloc] loadXMLByURL:@"http://retrieveurlxml.com/sample.xml"];
[self.tableView reloadData];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
static NSString *CellIdentifier = @"myimages";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
} UIImage *currentTweet = [[xmlParser tweets] objectAtIndex:indexPath.row];
UIImageView *tweetImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0,0,cell.frame.size.width , cell.frame.size.height)];
tweetImageView.image = currentTweet;
[cell setBackgroundView:tweetImageView];
return cell;
}
My current Scroll view Shows like below,

How i need is like below,
Can Anyone suggest me how to achieve like this.

Just use the API which i’ve emailed you. To call this API: