TableVeiw或者CollectionView点击不同的cell跳转不同的界面的界面
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.row ==0||indexPath.row==1) {
VideoViewController *oneController = [[selfstoryboard]instantiateViewControllerWithIdentifier:@"shipin"];
[[selfnavigationController] pushViewController:oneControlleranimated:YES];
}else {
UserViewController *twoController = [[selfstoryboard]instantiateViewControllerWithIdentifier:@"men"];
[[selfnavigationController] pushViewController:twoControlleranimated:YES];
}
}
其中,identifier是控制器的标识