I'm trying to change the code I had on a Table View Controller to a Collection View Controller, right now I'm trying to get the Segue to work but I get this error:
No visible @interface for 'UICollectionView' declares the selector 'indexPathForSelectedRow'
This is my Segue:
- (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ( [segue.identifier isEqualToString:@"showUpcomingRelease"]){
UpcomingReleaseViewController *upcomingReleaseViewController = (UpcomingReleaseViewController *)[segue destinationViewController];
upcomingReleaseViewController.singleRelease = [self.upcomingReleases objectAtIndex:[[self.collectionView indexPathForSelectedRow] row]];
}
}
Thanks.