the title says it all, i usually open ViewControllers like this
ListingViewController *listingView = [[ListingViewController alloc]init];
[self.navigationCon
The usual way is to implement the UICollectionViewDelegate
method – collectionView:didSelectItemAtIndexPath:
in the view controller that contains the UICollectionView. Then you can present the new view controller in the normal way.
For example:
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
[collectionView deselectItemAtIndexPath:indexPath animated:YES];
MyModel * model = self.listItems[indexPath.row]; //retrieve the object that is displayed by the cell at the selected index
MyViewerViewController * vc = [[MyViewerViewController alloc] initWithMyModel:model];
[self.navigationController pushViewController:vc animated:YES];
}