so I am using a collection view to show an image from my Parse server. When that image is clicked I have two labels on the bottom of the page that show more information (also from the server). The only problem is that these labels are not included in the CollectionView so the user has to tap on the cell for the data to fill those labels. How may I automatically fill those labels with the cell that is presented on the screen? Thank you!
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
PFObject *selectedObject = [labelFileArray objectAtIndex:indexPath.row];
titleLabel.text = selectedObject[@"labelText"];
PFObject *selectedObject2 = [mainTextArray objectAtIndex:indexPath.row];
mainTextLabel.text = selectedObject[@"mainTextLabel"];
}